Space Docs
API ReferenceOrganization Role

organizationRole.assignProjectRole

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
projectIdstring.uuidYes—ID of the associated project
organizationIdstringYes—ID of the associated organization
roleenum(customer_of_record, bill_to, contracting_party, end_user, site_owner, occupant, property_manager, service_customer, warranty_holder, upstream_contractor, subcontractor, supplier, stakeholder)Yes—Role
roleDetailstringNo—Role detail
isPrimarybooleanYesfalseIs primary
effectiveStartstring.date-timeNo—Effective start
notesstringNo—Notes
portalVisibleboolean,nullNo—Portal visible

Example

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

On this page