Create a profile type​
Create a profile type
- application/json
Request Body required
profile_type object
name stringThe name
bypass_dup_protection booleanDefault value:
false
Bypass duplicate protection?
archived booleanDefault value:
false
Is this archived
permitted_role_ids uuid[]Permitted Role ids
profile_type_dup_attributes object[]
Profile type duplicate attribgutes
id uuidThe id
uid stringPossible values:
>= 32 characters
and<= 32 characters
the uid
profile_type_id uuidThe profile type ID
ne_attribute_id uuidThe ne_attribute_id
profile_type_namings object[]
The profile type namings
id uuidThe id
uid stringPossible values:
>= 32 characters
and<= 32 characters
The uid
profile_type_id uuidThe profile_type_id
ne_attribute_id uuidThe ne_attribute_id
order int32The order which this appears in
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
profile_type object
id uuidThe id
uid stringPossible values:
>= 32 characters
and<= 32 characters
The uid
name stringthe name
bypass_dup_protection booleanbypass duplicate protection?
archived booleanis this profile type archived?
permitted_role_ids uuid[]permitted role_ids for this profile_type
profile_type_dup_attributes object[]
The profile type duplicate attributes
id uuidthe id
uid stringPossible values:
>= 32 characters
and<= 32 characters
the uid
profile_type_id uuidthe profile type id
ne_attribute_id uuidthe ne attribute id
profile_type_namings object[]
the profile type namings
id uuidthe id
uid stringPossible values:
>= 32 characters
and<= 32 characters
the uid
profile_type_id uuidthe profile type id
ne_attribute_id uuidthe ne attribute id
order int32the order
{
"profile_type": {
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"name": "my profile type",
"bypass_dup_protection": false,
"archived": false,
"permitted_role_ids": [
"db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"db6f8e8b-65c2-47d5-a0db-90bcc4e9df92"
],
"profile_type_dup_attributes": [
{
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9f",
"profile_type_id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9g",
"ne_attribute_id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9h"
}
],
"profile_type_namings": [
{
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9f",
"profile_type_id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9g",
"ne_attribute_id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9h",
"order": 0
}
]
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- error
- error
- errors
{
"error": "Invalid JSON syntax. Please check your syntax and try again."
}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
- error
A message describing the error
{
"error": "Sorry something went wrong"
}