Skip to content

Atlassian: Project roles schemas

6 Atlassian schemas with complete fields and constraints.

← Project roles operations · All schemas

Create project role — request body — body

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
descriptionstringOptionalA description of the project role. Required when fully updating a project role. Optional when creating or partially updating a project role.
namestringOptionalThe name of the project role. Must be unique. Cannot begin or end with whitespace. The maximum length is 255 characters. Required when creating a project role. Optional when partially updating a project role.

Create project role — response body

FieldTypePresenceDescription and constraints
$objectRootDetails about the roles in a project.
actorsJSONOptional
actors (anyOf 1)arrayAlternativeThe list of users who act in this role.
Read only: true
actors (anyOf 1)[]ModelEach itemExpand Create project role — response body — actors The list of users who act in this role item
actors (anyOf 2)nullAlternative
adminJSONOptional
admin (anyOf 1)booleanAlternativeWhether this role is the admin role for the project.
Read only: true
admin (anyOf 2)nullAlternative
currentUserRoleJSONOptional
currentUserRole (anyOf 1)booleanAlternativeWhether the calling user is part of this role.
currentUserRole (anyOf 2)nullAlternative
defaultJSONOptional
default (anyOf 1)booleanAlternativeWhether this role is the default role for the project
Read only: true
default (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the project role.
Read only: true
description (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)JSONAlternative
id (anyOf 1) (anyOf 1)integerAlternativeThe ID of the project role.
Format: int64
Read only: true
id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the project role.
name (anyOf 2)nullAlternative
roleConfigurableJSONOptional
roleConfigurable (anyOf 1)booleanAlternativeWhether the roles are configurable for this project.
Read only: true
roleConfigurable (anyOf 2)nullAlternative
scopeJSONOptional
scope (anyOf 1)ModelAlternativeExpand Get status — response body — scope project, type
The scope of the role. Indicated for roles associated with [next-gen projects](https://confluence.atlassian.com/x/loMyO).
Read only: true
scope (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeThe URL the project role details.
Format: uri
Read only: true
self (anyOf 2)nullAlternative
translatedNameJSONOptional
translatedName (anyOf 1)stringAlternativeThe translated name of the project role.
translatedName (anyOf 2)nullAlternative

Referenced models: Create project role — response body — actors The list of users who act in this role item, Get status — response body — scope project, type

Create project role — response body — actors The list of users who act in this role item

FieldTypePresenceDescription and constraints
$objectRootDetails about a user assigned to a project role.
actorGroupJSONOptional
actorGroup (anyOf 1)ModelAlternativeExpand Create project role — response body — actors The list of users who act in this role item actor Group Details of the group associated with the role
Read only: true
actorGroup (anyOf 2)nullAlternative
actorUserJSONOptional
actorUser (anyOf 1)ModelAlternativeExpand Create project role — response body — actors The list of users who act in this role item actor User Details of the user associated with the role
Read only: true
actorUser (anyOf 2)nullAlternative
avatarUrlJSONOptional
avatarUrl (anyOf 1)stringAlternativeThe avatar of the role actor.
Format: uri
Read only: true
avatarUrl (anyOf 2)nullAlternative
displayNameJSONOptional
displayName (anyOf 1)stringAlternativeThe display name of the role actor. For users, depending on the user’s privacy setting, this may return an alternative value for the user's name.
Read only: true
displayName (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)JSONAlternative
id (anyOf 1) (anyOf 1)integerAlternativeThe ID of the role actor.
Format: int64
Read only: true
id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThis property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
Read only: true
name (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe type of role actor.
Known values: atlassian-group-role-actor, atlassian-user-role-actor
Read only: true
type (anyOf 2)nullAlternative

Referenced models: Create project role — response body — actors The list of users who act in this role item actor Group Details of the group associated with the role, Create project role — response body — actors The list of users who act in this role item actor User Details of the user associated with the role

Create project role — response body — actors The list of users who act in this role item actor Group Details of the group associated with the role

FieldTypePresenceDescription and constraints
$objectRootDetails of the group associated with the role.
displayNameJSONOptional
displayName (anyOf 1)stringAlternativeThe display name of the group.
displayName (anyOf 2)nullAlternative
groupIdJSONOptional
groupId (anyOf 1)stringAlternativeThe ID of the group.
groupId (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the group. As a group's name can change, use of `groupId` is recommended to identify the group.
name (anyOf 2)nullAlternative

Create project role — response body — actors The list of users who act in this role item actor User Details of the user associated with the role

FieldTypePresenceDescription and constraints
$objectRootDetails of the user associated with the role.
accountIdJSONOptional
accountId (anyOf 1)stringAlternativeThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Returns *unknown* if the record is deleted and corrupted, for example, as the result of a server import.
Maximum length: 128
Read only: true
accountId (anyOf 2)nullAlternative

Get project role details — response body — item

FieldTypePresenceDescription and constraints
$objectRootDetails about a project role.
adminJSONOptional
admin (anyOf 1)booleanAlternativeWhether this role is the admin role for the project.
Read only: true
admin (anyOf 2)nullAlternative
defaultJSONOptional
default (anyOf 1)booleanAlternativeWhether this role is the default role for the project.
Read only: true
default (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the project role.
Read only: true
description (anyOf 2)nullAlternative
idJSONOptional
id (anyOf 1)JSONAlternative
id (anyOf 1) (anyOf 1)integerAlternativeThe ID of the project role.
Format: int64
Read only: true
id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
id (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the project role.
name (anyOf 2)nullAlternative
roleConfigurableJSONOptional
roleConfigurable (anyOf 1)booleanAlternativeWhether the roles are configurable for this project.
Read only: true
roleConfigurable (anyOf 2)nullAlternative
scopeJSONOptional
scope (anyOf 1)ModelAlternativeExpand Get status — response body — scope project, type
The scope of the role. Indicated for roles associated with [next-gen projects](https://confluence.atlassian.com/x/loMyO).
Read only: true
scope (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeThe URL the project role details.
Format: uri
Read only: true
self (anyOf 2)nullAlternative
translatedNameJSONOptional
translatedName (anyOf 1)stringAlternativeThe translated name of the project role.
translatedName (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe type of the project role. This is "DEFAULT" or "GUEST\_ROLE".
Known values: DEFAULT, GUEST_ROLE, AI_AGENT_ROLE
Read only: true
type (anyOf 2)nullAlternative

Referenced models: Get status — response body — scope project, type

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.