Create a new manager
POST/companies/:company-id/managers
Create a new manager
Request
- application/json
Body
required
name stringrequired
The name of the manager
email emailrequired
The email of the manager
claims string[]required
Possible values: [billing, managers_read, manager_invite, clients_invite, clients_reads, management], >= 1
Responses
- 200
success - manager created
- application/json
- Schema
- Example (from schema)
Schema
id stringrequired
name stringrequired
email stringrequired
providers
object
nullable
Provider IDs associated with the entity. This field contains a mapping where each key represents a provider name and the value is an array of provider-specific IDs for this entity
prisme
object
nullable
id stringnullable
profile stringnullable
specific
object
nullable
Value specific to the manager with arbitrary structure
nullable
claims string[]required
Possible values: [billing, managers_read, manager_invite, clients_invite, clients_reads, management]
{
"id": "adfdfaca-48f0-4f3b-b30a-c6d97293090c",
"name": "Jean dupont",
"email": "jean.dupont@company.tld",
"providers": {
"prisme": {
"id": "id1",
"profile": "provider1"
}
},
"specific": {},
"claims": [
"billing"
]
}
Loading...