Skip to main content
POST
/
territories
Create territories
curl --request POST \
  --url https://api-staging.pixwel.com/api/territories \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "_id": "56e95e5314131c6e538b4579",
  "name": "ASIA-PAC Manager",
  "languages": [
    "<unknown>"
  ],
  "assignedLanguages": [
    "<unknown>"
  ],
  "countries": [
    "<unknown>"
  ],
  "created": 1458134611,
  "$links": {
    "self": "//api-staging.pixwel.com/api/Territories/56e95e5314131c6e538b4579"
  }
}
'
{
  "_id": "56e95e5314131c6e538b4579",
  "name": "ASIA-PAC Manager",
  "languages": [
    "<unknown>"
  ],
  "assignedLanguages": [
    "<unknown>"
  ],
  "countries": [
    "<unknown>"
  ],
  "created": 1458134611,
  "$links": {
    "self": "//api-staging.pixwel.com/api/Territories/56e95e5314131c6e538b4579"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
_id
string
Example:

"56e95e5314131c6e538b4579"

name
string
Example:

"ASIA-PAC Manager"

languages
any[]
assignedLanguages
any[]
countries
any[]
created
integer
Example:

1458134611

Response

200 - application/json

OK

_id
string
Example:

"56e95e5314131c6e538b4579"

name
string
Example:

"ASIA-PAC Manager"

languages
any[]
assignedLanguages
any[]
countries
any[]
created
integer
Example:

1458134611