Tearleads

PUT/organizations/{organizationId}/roster/{userId}

Bind an encrypted roster profile document

Operation organizations.roster.update

Description

Binds a member's encrypted roster profile document to their organization roster entry. Members may bind their own profile; binding another member's requires organization administrator access.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Parameters

NameInTypeDetails
organizationIdpathstringrequired
  • lowercase UUID v4
userIdpathstringrequired
  • lowercase UUID v4

Request body

application/jsonUpdateOrganizationRosterEntryRequest

Binds or clears a roster entry's encrypted profile document.

1 field
  • profileDocumentIdstringrequirednullable
    • lowercase UUID v4

Other fields are allowed.

Responses

200 OK

application/jsonOrganizationDirectoryUserResponse

One organization roster entry with the user's registered keys. Display names live in the encrypted profile document.

15 fields
  • createdAtstringrequired
  • disabledAtstringrequirednullable
  • disabledByUserIdstringrequirednullable

    Administrator who disabled the entry, or null.

  • encapsulationKeyFingerprintstringrequired
  • encapsulationPublicKeystringrequired
  • isPersonalOrganizationOwnerbooleanrequired

    True for the user whose personal organization this is; they cannot be removed from it.

  • isSelfbooleanrequired

    True for the caller's own entry.

  • joinedAtstringrequired
  • leaveRequestOrganizationLeaveRequestrequirednullable

    The member's pending signed request to leave, shown only to administrators and the member.

  • profileDocumentIdstringrequirednullable

    Encrypted roster profile document, or null.

  • signingKeyFingerprintstringrequired
  • signingPublicKeystringrequired
  • statusstringrequired
    • one of active, disabled

    active members have access; disabled entries stay visible without access.

  • updatedAtstringrequired
  • userIdstringrequired

Other fields are allowed.

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

402Payment Required

application/jsonPaymentRequiredErrorResponse

403Forbidden

application/jsonErrorResponse

404Not Found

application/jsonErrorResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse