Create Account For Org
POST/v1/org/:org_identifier/account-org
Create an Account if it does not exists and assign Account to Organization. If an existing account is found (matched by email) then the existing first, last, and nicknames will be used and values provided will be ignored. To update first, last, and nickname fields use the Account update API.This API requires accountOrg:config:edit permissions for the Organization.
Request
Path Parameters
Organization ID or short name
Query Parameters
Create a Machine-To-Machine account for the organization.
- application/json
Body
required
Organization that this user belongs to
Email address for this account
Name for this account
Last name for this account
Nickname for this account
Password for this account
Description for this account
Client secret for this account
Responses
- 200
- 400
- 409
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- AccountOrganizationM2M
- AccountOrganization
anyOf
Account id
Organization that this user belongs to
Description of the M2M account
Client secret for this account
Account id
Organization that this user belongs to
Description of the account
{}
Bad Request
Conflict
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}