We're announcing ๐Ÿง‘โ€๐Ÿš€ inter-galactic shipping โœจ for 3025!
Shipment API

โ€‹Organization Management


Endpoint

โ€‹List all organizations

GET
https://api.sh.example.com/v1
/organizations

Returns a list of all organizations in the hierarchy

โ€‹List all organizations โ€บ Responses

    • idstringย ยทย pattern: ^[a-zA-Z0-9-]+$ย ยทย required

      Unique identifier for the organization

    • namestringย ยทย minLength: 1ย ยทย maxLength: 200ย ยทย required

      Name of the organization

    • parent
      circular
    • subarrayย ยทย maxItems: 100
      circular

      Child organizations (array circular reference)

โ€‹Create a new organization

POST
https://api.sh.example.com/v1
/organizations

Creates a new organization, optionally as part of an existing hierarchy

โ€‹Create a new organization โ€บ Request Body

  • idstringย ยทย pattern: ^[a-zA-Z0-9-]+$ย ยทย required

    Unique identifier for the organization

  • namestringย ยทย minLength: 1ย ยทย maxLength: 200ย ยทย required

    Name of the organization

  • parent
    circular
  • subarrayย ยทย maxItems: 100
    circular

    Child organizations (array circular reference)

โ€‹Create a new organization โ€บ Responses

    • idstringย ยทย pattern: ^[a-zA-Z0-9-]+$ย ยทย required

      Unique identifier for the organization

    • namestringย ยทย minLength: 1ย ยทย maxLength: 200ย ยทย required

      Name of the organization

    • parent
      circular
    • subarrayย ยทย maxItems: 100
      circular

      Child organizations (array circular reference)