Space Docs
API ReferenceOrganization Role

organizationRole.assignProjectRole

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
projectIdstring.uuidYesID of the associated project
organizationIdstringYesID 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)YesRole
roleDetailstringNoRole detail
isPrimarybooleanYesfalseIs primary
effectiveStartstring.date-timeNoEffective start
notesstringNoNotes

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