Saltar al contenido

Update an organization profile

Módulo Identity

PATCH/organization-profiles/{id}organizationProfiles.update

An organization's profile page. New organizations start Network. Updates the fields sent; omitted fields are unchanged. Requires `If-Match` with the current `ETag`: a stale tag returns 412 and a missing tag returns 428.

  • Requiere la capacidad org.profile.write.
  • Alcances de OAuth: org.
  • Envía If-Match con el ETag que leíste. Una etiqueta desactualizada devuelve 412; si falta, devuelve 428.
  • Estados de error: 400, 401, 404, 412, 422, 428, 429. Los errores son detalles de problema RFC 9457.

Parámetros de ruta y de consulta

organizationProfiles.update: Parámetros de ruta y de consulta
CampoTipoObligatorioDescripción
idstring (uuid)SíIdentifier of the organization profile.

Cuerpo de la solicitud: OrganizationProfileUpdate

organizationProfiles.update: OrganizationProfileUpdate
CampoTipoObligatorioDescripción
aboutstring | nullNoAbout.Restricciones: length 1 to 20000
visibilityProfileVisibilityNoProfile visibility. Sections and fields may be set lower than the profile, never higher.Restricciones: one of "Public", "Network", "Private"
search_indexingbooleanNoWhether search engines may index a public profile.
handlestringNoUnique handle for /u/{handle} or /c/{handle}: 3 to 40 lowercase letters, digits and single hyphens. Changeable once every 30 days; the old handle redirects for 90 days.Restricciones: pattern ^[a-z0-9]([a-z0-9-]{1,38}[a-z0-9])$
website_urlstring (uri) | nullNoWebsite of the organization; https only.
contact_emailstring (email) | nullNoContact email of the organization, stored in lowercase.
{
  "about": "Live event production for waterfront venues.",
  "search_indexing": false,
  "handle": "northwind-live",
  "website_url": "https://northwindlive.example/files/site-plan.pdf",
  "contact_email": "alex.rivera@northwindlive.example"
}

Respuesta 200: OrganizationProfile

organizationProfiles.update: OrganizationProfile
CampoTipoObligatorioDescripción
idstring (uuid)SíIdentifier of the organization profile.
created_atstring (date-time)SíWhen the row was created.
updated_atstring (date-time)SíWhen the row was last updated.
organization_idstring (uuid)SíIdentifier of the organization.
aboutstring | nullSíAbout.Restricciones: length 1 to 20000
visibilityProfileVisibilitySíProfile visibility. Sections and fields may be set lower than the profile, never higher.Restricciones: one of "Public", "Network", "Private"
search_indexingbooleanSíWhether search engines may index a public profile.
handlestringSíUnique handle for /u/{handle} or /c/{handle}: 3 to 40 lowercase letters, digits and single hyphens. Changeable once every 30 days; the old handle redirects for 90 days.Restricciones: pattern ^[a-z0-9]([a-z0-9-]{1,38}[a-z0-9])$
handle_changed_atstring (date-time) | nullSíWhen the handle last changed; null until the first change. Set by the database.
website_urlstring (uri) | nullSíWebsite of the organization; https only.
contact_emailstring (email) | nullSíContact email of the organization, stored in lowercase.
{
  "id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "created_at": "2026-10-08T14:30:00Z",
  "updated_at": "2026-10-08T14:30:00Z",
  "organization_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "about": "Live event production for waterfront venues.",
  "visibility": "Private",
  "search_indexing": false,
  "handle": "northwind-live",
  "handle_changed_at": "2026-10-08T14:30:00Z",
  "website_url": "https://northwindlive.example/files/site-plan.pdf",
  "contact_email": "alex.rivera@northwindlive.example"
}

Ejemplos de código

curl -X PATCH "$XOS_BASE_URL/organization-profiles/0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f" \
  -H "Authorization: Bearer $XOS_API_KEY" \
  -H 'If-Match: W/"etag-from-your-last-read"' \
  -H "Content-Type: application/json" \
  -d '{"about":"Live event production for waterfront venues.","search_indexing":false,"handle":"northwind-live","website_url":"https://northwindlive.example/files/site-plan.pdf","contact_email":"alex.rivera@northwindlive.example"}'
const { data, etag } = await xos.organizationProfiles.update("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", {
    "about": "Live event production for waterfront venues.",
    "search_indexing": false,
    "handle": "northwind-live",
    "website_url": "https://northwindlive.example/files/site-plan.pdf",
    "contact_email": "alex.rivera@northwindlive.example"
  }, { ifMatch: etag });
response = xos.organization_profiles.update("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", {"about": "Live event production for waterfront venues.", "search_indexing": False, "handle": "northwind-live", "website_url": "https://northwindlive.example/files/site-plan.pdf", "contact_email": "alex.rivera@northwindlive.example"}, if_match=etag)
xos organization-profiles update 0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f --data '{"about":"Live event production for waterfront venues.","search_indexing":false,"handle":"northwind-live","website_url":"https://northwindlive.example/files/site-plan.pdf","contact_email":"alex.rivera@northwindlive.example"}' --if-match auto