Skip to content

List the roles worth mentioning on a model

GET
/api/models/{id}/mentionable/roles
curl --request GET \
--url https://forge.example.com/api/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mentionable/roles \
--header 'Authorization: Bearer <token>'

The roles that would reach someone other than you among the people who can see the model. Every role but author can be mentioned.

id
required
string format: uuid

OK

Media typeapplication/json
Array<object>
object
role
required
string
label
required
string

Example generated

[
{
"role": "example",
"label": "example"
}
]

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}