Skip to main content
POST
/
sections
Create Section
curl --request POST \
  --url https://api.partoo.co/v2/sections \
  --header 'Content-Type: application/json' \
  --header 'x-APIKey: <api-key>' \
  --data '{
  "name": "Country",
  "org_id": 1
}'
{
  "status": "success",
  "id": 1
}

Authorizations

x-APIKey
string
header
required

The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.

Body

application/json

Request body to create a section

name
string
required

Name of the section. Cannot include any of the following characters: ,;/

Example:

"Country"

org_id
integer

ID of the organization in which to create the section (only available to PROVIDER users)

Example:

1

Response

OK

status
enum<string>

Request status

Available options:
success
id
integer

ID of the created section

Example:

1