Skip to main content
POST
/
v1
/
users
/
{user_id}
/
assignments
Create assignment for user
curl --request POST \
  --url https://{tenant}.torchapp.com.au/api/v1/users/{user_id}/assignments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assignable_type": "architecto",
  "assignable_id": 16
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
integer
required

The ID of the user.

Body

application/json
assignable_type
string
required
Example:

"architecto"

assignable_id
integer
required
Example:

16

Response

Assignment created

The response is of type object.