organization

PATCH /api/organization/{id}

Changed on

Organization details. A suspended organization (is_rogue) can still be fetched, so its page can show the suspension notice, but only its id, name and flag are returned to anyone but staff.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Path parameters

idinteger required

Request body

namestring
homepagestring nullable
descriptionstring
orgnrstring
postalAddressstring nullable
streetAddressstring nullable

Response

idinteger required
namestring required
homepagestring nullable
descriptionstring
orgnrstring required
postalAddressstring nullable
streetAddressstring nullable
editorIdinteger nullable required
editorNamestring required
editorEmailstring nullable required
editorMsisdnstring nullable required

Always None: no phone number is published for an organization or its editor. Kept so clients built against the old schema still parse.

fkmemberboolean required
isRogueboolean required

Changes

    • warning

      added the new required enum value to the oneOf[#/components/schemas/OrganizationPartialUpdateValidationError]/errors/items/oneOf[#/components/schemas/OrganizationPartialUpdateOrgnrErrorComponent]/code response property for the response status

    • info

      the response property orgnr became required for the status

    • breaking

      added to the oneOf[#/components/schemas/OrganizationPartialUpdateValidationError]/errors/items response property oneOf list for the response status

    1 more change in this revision