Space Docs
API ReferenceOrganization Role

organizationRole.assignSiteRole

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
siteIdstringYesID of the associated site
organizationIdstringYesID of the associated organization
roleenum(owner, occupant, property_manager, service_customer, default_bill_to)YesRole
roleDetailstringNoRole detail
isPrimarybooleanYesfalseIs primary
effectiveStartstring.date-timeNoEffective start
notesstringNoNotes

Example

{
  "siteId": "550e8400-e29b-41d4-a716-446655440000",
  "organizationId": "550e8400-e29b-41d4-a716-446655440000",
  "role": "owner",
  "roleDetail": "example",
  "isPrimary": false,
  "effectiveStart": "2024-01-15T09:00:00.000Z"
}

On this page