Skip to content

Assign a domain to a project (null = org-wide commons); org admin

PUT
/v1/domains/{id}/project
curl --request PUT \
--url https://api.monita.ai/v1/domains/example/project \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "projectId": "example" }'
id
required
string
Media typeapplication/json
object
projectId
required
string
nullable
Examplegenerated
{
"projectId": "example"
}

OK

Media typeapplication/json
object
ok
required
boolean
Examplegenerated
{
"ok": true
}

Forbidden

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}

Not found

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}