Saltar al contenido

Create an organization profile

Módulo Identity

POST/organization-profilesorganizationProfiles.create

An organization's profile page. New organizations start Network. Creates an organization profile. Requires `Idempotency-Key`; a replay returns the original response. The organization is derived from the credential or the parent row, never from the body.

  • Requiere la capacidad org.profile.write.
  • Alcances de OAuth: org.
  • Envía el encabezado Idempotency-Key. Una repetición con la misma clave devuelve la respuesta original.
  • Estados de error: 400, 401, 409, 422, 429. Los errores son detalles de problema RFC 9457.

Cuerpo de la solicitud: OrganizationProfileCreate

organizationProfiles.create: OrganizationProfileCreate
CampoTipoObligatorioDescripción
organization_idstring (uuid)SíIdentifier of the organization.
aboutstring | nullNoAbout.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.
{
  "organization_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "about": "Live event production for waterfront venues.",
  "visibility": "Private",
  "search_indexing": false
}

Respuesta 201: OrganizationProfile

organizationProfiles.create: 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 POST "$XOS_BASE_URL/organization-profiles" \
  -H "Authorization: Bearer $XOS_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"organization_id":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f","about":"Live event production for waterfront venues.","visibility":"Private","search_indexing":false}'
const { data } = await xos.organizationProfiles.create({
    "organization_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
    "about": "Live event production for waterfront venues.",
    "visibility": "Private",
    "search_indexing": false
  });
response = xos.organization_profiles.create({"organization_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", "about": "Live event production for waterfront venues.", "visibility": "Private", "search_indexing": False})
xos organization-profiles create --data '{"organization_id":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f","about":"Live event production for waterfront venues.","visibility":"Private","search_indexing":false}'