Skip to main content
POST
/
api
/
directory
/
resources.create
Create a new resource
curl --request POST \
  --url https://api.example.com/api/directory/resources.create \
  --header 'Content-Type: application/json' \
  --data '
{
  "kind": "872815618512410358",
  "attributes": {},
  "id": "872815618512410358",
  "team": "872815618512410358",
  "start_date": "2019-11-11",
  "additional_settings": {
    "activity_rate_contract": {
      "rate": 50,
      "paid_hourly": true,
      "trainee": true,
      "apprentice": true
    },
    "security": {
      "username": "<string>",
      "password": "<string>",
      "send_email": true
    }
  }
}
'
{
  "id": "872815618512410358"
}

Body

application/json
kind
string<snowflake>
required
Example:

"872815618512410358"

attributes
object
required
id
string<snowflake>
Example:

"872815618512410358"

team
string<snowflake>
Example:

"872815618512410358"

start_date
string<local-date>
Example:

"2019-11-11"

additional_settings
object

Response

201 - application/json

Resource created successfully.

id
string<snowflake>
Example:

"872815618512410358"