Responses
-
Created
-
Multi-Status - some items succeeded and some failed. The body is an array in request order (a list request body, even with one item, always answers a list); a failed item carries
error_messageinstead ofuser_idand was not written. A user who is already a member of the group answersParameter 'user_id' is invalid. -
Bad Request - every item of a list request body failed. The body has the same shape as
207, witherror_messageon each item; nothing was written. A single-object request body that fails answers the standard error object instead.
POST
/profiles/{profile_id}/user_groups/{user_group_id}/users
curl \
--request POST 'https://api.iformbuilder.com/exzact/api/v80/[servername]/profiles/self/user_groups/{user_group_id}/users' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer {access_token}" \
--data '{
"user_id": 415215
}'
Request examples
Example1
{
"user_id": 415215
}
[
{
"user_id": 790154
},
{
"user_id": 781045
}
]
Response examples (201)
Example1
{
"user_id": 415215
}
[
{
"page_id": 790771
},
{
"page_id": 790774
}
]
Response examples (207)
[
{
"user_id": 12345
},
{
"error_message": "Parameter 'user_id' is invalid"
}
]
Response examples (400)
Every item of a list body failed
[
{
"error_message": "Parameter 'user_id' is invalid"
}
]
{
"error_message": "Parameter 'user_id' is invalid"
}