Snyk Orgs API

The Orgs API from Snyk — 5 operation(s) for orgs.

OpenAPI Specification

snyk-orgs-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Snyk AccessRequests Orgs API
  version: REST
servers:
- description: Snyk REST API
  url: https://api.snyk.io/rest
security:
- APIToken: []
- BearerAuth: []
tags:
- name: Orgs
paths:
  /groups/{group_id}/orgs:
    get:
      description: 'Get a paginated list of all the organizations belonging to the group.

        By default, this endpoint returns the organizations in alphabetical order of their name.


        #### Required permissions


        - `View Groups (group.read)`


        - `View Organizations (group.org.list)`'
      operationId: listOrgsInGroup
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/StartingAfter'
      - $ref: '#/components/parameters/EndingBefore'
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/PathGroupId'
      - $ref: '#/components/parameters/QueryNameFilter'
      - $ref: '#/components/parameters/QuerySlugFilter'
      - $ref: '#/components/parameters/QueryExpand'
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/Org'
                    type: array
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/PaginatedLinks'
                  meta:
                    $ref: '#/components/schemas/ListOrgsInGroupMeta'
                required:
                - jsonapi
                - data
                - links
                type: object
          description: A list of organizations in the group.
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      summary: List all organizations in group
      tags:
      - Orgs
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2023-10-24~experimental
      - 2023-12-14~beta
      - '2024-02-28'
      x-snyk-api-resource: orgs
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-02-28'
      x-stability-level: stable
  /orgs:
    get:
      description: Get a paginated list of organizations you have access to.
      operationId: listOrgs
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/StartingAfter'
      - $ref: '#/components/parameters/EndingBefore'
      - $ref: '#/components/parameters/Limit'
      - description: If set, only return organizations within the specified group
        in: query
        name: group_id
        schema:
          format: uuid
          type: string
      - description: If true, only return organizations that are not part of a group.
        in: query
        name: is_personal
        schema:
          type: boolean
      - description: Only return orgs whose slug exactly matches this value.
        in: query
        name: slug
        schema:
          maxLength: 100
          pattern: ^[\w.-]+$
          type: string
      - description: Only return orgs whose name contains this value.
        in: query
        name: name
        schema:
          maxLength: 100
          type: string
      - description: Expand the specified related resources in the response to include their attributes.
        in: query
        name: expand
        schema:
          items:
            enum:
            - member_role
            type: string
          type: array
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/OrgWithRelationships'
                    type: array
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/PaginatedLinks'
                required:
                - jsonapi
                - data
                - links
                type: object
          description: A list of organizations you have access to.
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      summary: List accessible organizations
      tags:
      - Orgs
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2022-04-06~experimental
      - 2022-12-15~beta
      - '2023-05-29'
      - '2024-02-28'
      x-snyk-api-resource: orgs
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-02-28'
      x-stability-level: stable
  /orgs/{org_id}:
    get:
      description: 'Get the full details of an organization.


        #### Required permissions


        - `View Organization (org.read)`'
      operationId: getOrg
      parameters:
      - $ref: '#/components/parameters/Version'
      - description: Unique identifier for org
        in: path
        name: org_id
        required: true
        schema:
          example: b667f176-df52-4b0a-9954-117af6b05ab7
          format: uuid
          type: string
      - description: Expand the specified related resources in the response to include their attributes.
        in: query
        name: expand
        schema:
          items:
            enum:
            - tenant
            type: string
          type: array
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/Org20230529'
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/SelfLink'
                type: object
          description: Returns an instance of an organization
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      summary: Get organization
      tags:
      - Orgs
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2022-04-06~experimental
      - 2022-12-15~beta
      - '2023-05-29'
      x-snyk-api-resource: orgs
      x-snyk-api-stability: ga
      x-snyk-api-version: '2023-05-29'
      x-stability-level: stable
    patch:
      description: 'Update the details of an organization


        #### Required permissions


        - `Edit Organization (org.edit)`'
      operationId: updateOrg
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/PathOrgId'
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              properties:
                data:
                  additionalProperties: false
                  properties:
                    attributes:
                      $ref: '#/components/schemas/OrgUpdateAttributes'
                    id:
                      description: The ID of the resource.
                      format: uuid
                      type: string
                    type:
                      description: The type of the resource.
                      enum:
                      - org
                      example: org
                      type: string
                  required:
                  - id
                  - type
                  - attributes
                  type: object
              required:
              - data
              type: object
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                properties:
                  data:
                    additionalProperties: false
                    description: org resource object
                    properties:
                      attributes:
                        $ref: '#/components/schemas/OrgAttributes'
                      id:
                        example: d5b640e5-d88c-4c17-9bf0-93597b7a1ce2
                        format: uuid
                        type: string
                      relationships:
                        $ref: '#/components/schemas/OrgRelationships'
                      type:
                        enum:
                        - org
                        example: org
                        type: string
                    required:
                    - id
                    - type
                    type: object
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/SelfLink'
                type: object
          description: Instance of org is updated
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '204':
          $ref: '#/components/responses/204'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      summary: Update organization
      tags:
      - Orgs
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2022-04-06~experimental
      - 2022-12-15~beta
      - '2023-05-29'
      - '2024-02-28'
      x-snyk-api-resource: orgs
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-02-28'
      x-stability-level: stable
  /orgs/{org_id}/memberships:
    get:
      description: 'Returns all memberships of the org


        #### Required permissions


        - `View Organization Memberships (org.membership.read)`'
      operationId: listOrgMemberships
      parameters:
      - description: The ID of the org
        in: path
        name: org_id
        required: true
        schema:
          format: uuid
          type: string
      - $ref: '#/components/parameters/StartingAfter'
      - $ref: '#/components/parameters/EndingBefore'
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Version'
      - description: Which column to sort by.
        in: query
        name: sort_by
        schema:
          enum:
          - username
          - user_display_name
          - email
          - login_method
          - role
          type: string
      - description: Order in which results are returned.
        example: ASC
        in: query
        name: sort_order
        schema:
          default: ASC
          enum:
          - ASC
          - DESC
          type: string
      - $ref: '#/components/parameters/EmailFilter'
      - $ref: '#/components/parameters/UserIdFilter'
      - $ref: '#/components/parameters/UsernameFilter'
      - $ref: '#/components/parameters/RoleFilter'
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/OrgMembershipResponseData'
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/Links'
                required:
                - jsonapi
                - data
                - links
                type: object
          description: List of org memberships is returned
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      summary: Get all memberships of the org
      tags:
      - Orgs
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-05-09~experimental
      - '2024-08-25'
      x-snyk-api-resource: orgs
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-08-25'
      x-stability-level: stable
    post:
      description: 'Create a org membership for a user with role


        #### Required permissions


        - `Add Organization Memberships (org.membership.add)`'
      operationId: createOrgMembership
      parameters:
      - description: The ID of the org
        in: path
        name: org_id
        required: true
        schema:
          format: uuid
          type: string
      - $ref: '#/components/parameters/Version'
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/CreateOrgMembershipRequestBody20240825'
      responses:
        '201':
          content:
            application/vnd.api+json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/OrgMembership'
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/Links'
                type: object
          description: Membership for the user is created on the org
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            location:
              $ref: '#/components/headers/LocationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      summary: Create a org membership for a user with role
      tags:
      - Orgs
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-05-09~experimental
      - '2024-08-25'
      x-snyk-api-resource: orgs
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-08-25'
      x-stability-level: stable
  /orgs/{org_id}/memberships/{membership_id}:
    delete:
      description: 'Remove a user''s membership of the group.


        #### Required permissions


        - `Delete Organization Memberships (org.membership.delete)`'
      operationId: deleteOrgMembership
      parameters:
      - description: The id of the org
        in: path
        name: org_id
        required: true
        schema:
          format: uuid
          type: string
      - $ref: '#/components/parameters/OrgMembershipId'
      - $ref: '#/components/parameters/Version'
      responses:
        '204':
          description: Org membership for the user was successfully deleted.
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      summary: Remove user's org membership
      tags:
      - Orgs
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-06-06~experimental
      - '2024-08-25'
      x-snyk-api-resource: org_memberships
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-08-25'
      x-stability-level: stable
    patch:
      description: 'Update a org membership for a user with role


        #### Required permissions


        - `Edit Organization Memberships (org.membership.edit)`'
      operationId: updateOrgMembership
      parameters:
      - description: The id of the org
        in: path
        name: org_id
        required: true
        schema:
          format: uuid
          type: string
      - $ref: '#/components/parameters/OrgMembershipId'
      - $ref: '#/components/parameters/Version'
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              properties:
                data:
                  $ref: '#/components/schemas/UpdateOrgMembershipRequestBody20240825'
              required:
              - data
              type: object
      responses:
        '204':
          description: The Membership is updated
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      summary: Update a org membership for a user with role
      tags:
      - Orgs
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-06-06~experimental
      - '2024-08-25'
      x-snyk-api-resource: org_memberships
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-08-25'
      x-stability-level: stable
components:
  parameters:
    EndingBefore:
      description: Return the page of results immediately before this cursor
      example: v1.eyJpZCI6IjExMDAifQo=
      in: query
      name: ending_before
      schema:
        type: string
    StartingAfter:
      description: Return the page of results immediately after this cursor
      example: v1.eyJpZCI6IjEwMDAifQo=
      in: query
      name: starting_after
      schema:
        type: string
    RoleFilter:
      description: Filter the response for results only with the specified role.
      in: query
      name: role_name
      schema:
        type: string
    QuerySlugFilter:
      description: Only return organizations whose slug exactly matches this value. Case sensitive.
      in: query
      name: slug
      schema:
        type: string
    Version:
      description: The requested version of the endpoint to process the request
      example: '2026-03-25'
      in: query
      name: version
      required: true
      schema:
        $ref: '#/components/schemas/QueryVersion'
    Limit:
      description: Number of results to return per page
      example: 10
      in: query
      name: limit
      schema:
        default: 10
        format: int32
        maximum: 100
        minimum: 10
        multipleOf: 10
        type: integer
    EmailFilter:
      description: Filter the response by Users that match the provided email
      in: query
      name: email
      schema:
        type: string
    PathGroupId:
      description: Unique identifier for group
      in: path
      name: group_id
      required: true
      schema:
        example: b667f176-df52-4b0a-9954-117af6b05ab7
        format: uuid
        type: string
    PathOrgId:
      description: Unique identifier for org
      in: path
      name: org_id
      required: true
      schema:
        example: b667f176-df52-4b0a-9954-117af6b05ab7
        format: uuid
        type: string
    UsernameFilter:
      description: Filter the response by Users that match the provided username
      in: query
      name: username
      schema:
        type: string
    QueryNameFilter:
      description: Only return organizations whose name contains this value. Case insensitive.
      in: query
      name: name
      schema:
        type: string
    OrgMembershipId:
      description: The id of the org membership
      in: path
      name: membership_id
      required: true
      schema:
        format: uuid
        type: string
    QueryExpand:
      description: Expand the response with additional fields. When set to `count`, the response will include a `meta` object containing a `total_count` field with the total number of organizations in the group, ignoring any filters applied to the original query.
      in: query
      name: expand
      schema:
        enum:
        - count
        example: count
        type: string
    UserIdFilter:
      description: Filter the response by Users that match the provided user ID
      in: query
      name: user_id
      schema:
        type: string
  schemas:
    Org:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/OrgAttributes'
        id:
          description: The Snyk ID of the organization.
          example: 59d6d97e-3106-4ebb-b608-352fad9c5b34
          format: uuid
          type: string
        type:
          $ref: '#/components/schemas/Types'
      required:
      - type
      - id
      - attributes
      type: object
    OrgMembershipOrgData:
      properties:
        data:
          additionalProperties: false
          properties:
            attributes:
              properties:
                name:
                  description: The name of the organization
                  example: Example org
                  type: string
              required:
              - name
              type: object
            id:
              example: 331ede0a-de94-456f-b788-166caeca58bf
              format: uuid
              type: string
            type:
              example: org
              type: string
          required:
          - id
          - attributes
          type: object
      type: object
    ActualVersion:
      description: Resolved API version
      example: '2026-03-25'
      pattern: ^((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?)$
      type: string
    OrgMembershipAttributes:
      additionalProperties: false
      properties:
        created_at:
          description: The time when this Org membership was created
          example: '2022-03-16T00:00:00Z'
          format: date-time
          type: string
      required:
      - created_at
      type: object
    JsonApi:
      additionalProperties: false
      example:
        version: '1.0'
      properties:
        version:
          description: Version of the JSON API specification this server supports.
          example: '1.0'
          pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
          type: string
      required:
      - version
      type: object
    OrgRelationships:
      additionalProperties: false
      properties:
        member_role:
          $ref: '#/components/schemas/MemberRoleRelationship'
      type: object
    QueryVersion:
      description: Requested API version
      example: '2026-03-25'
      pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
      type: string
    OrgMembershipUserData:
      properties:
        data:
          additionalProperties: false
          properties:
            attributes:
              properties:
                email:
                  description: The email of the user
                  example: user@test.com
                  type: string
                login_method:
                  description: The login method of the user
                  type: string
                name:
                  description: The name of the user
                  example: User2
                  type: string
                username:
                  description: The username of the user
                  example: User name 2
                  type: string
              required:
              - name
              - username
              - email
              type: object
            id:
              example: 331ede0a-de94-456f-b788-166caeca58bf
              format: uuid
              type: string
            type:
              example: user
              type: string
          required:
          - id
          - attributes
          type: object
      type: object
    OrgUpdateAttributes:
      additionalProperties: false
      properties:
        name:
          description: The display name of the organization.
          example: My Org
          maxLength: 60
          minLength: 1
          type: string
      required:
      - name
      type: object
    OrgMembershipRoleData:
      properties:
        data:
          additionalProperties: false
          properties:
            attributes:
              properties:
                name:
                  description: The name of the role
                  example: Admin role
                  type: string
              required:
              - name
              type: object
            id:
              example: 331ede0a-de94-456f-b788-166caeca58bf
              format: uuid
              type: string
            type:
              example: org_role
              type: string
          required:
          - id
          - attributes
          type: object
      type: object
    UpdateOrgMembershipRequestBody20240825:
      additionalProperties: false
      properties:
        attributes:
          type: object
        id:
          description: The Snyk ID of the organization.
          example: f60ff965-6889-4db2-8c86-0285d62f35ab
          format: uuid
          type: string
        relationships:
          additionalProperties: false
          properties:
            role:
              properties:
                data:
                  additionalProperties: false
                  properties:
                    id:
                      description: The Snyk ID of the Org Role.
                      example: f60ff965-6889-4db2-8c86-0285d62f35ab
                      format: uuid
                      type: string
                    type:
                      description: The type of the resource. Always 'org_role'.
                      example: org_role
                      type: string
                  required:
                  - type
                  - id
                  type: object
              type: object
          required:
          - role
          type: object
        type:
          description: The type of the resource. Always 'org_membership'.
          example: org_membership
          type: string
      required:
      - type
      - id
      - relationships
      type: object
    OrgAttributes20230529:
      additionalProperties: false
      properties:
        created_at:
          description: The time the organization was created.
          example: '2022-03-16T00:00:00Z'
          format: date-time
          type: string
        group_id:
          description: The Snyk ID of the group to which the organization belongs.
          example: 59d6d97e-3106-4ebb-b608-352fad9c5b34
          format: uuid
          type: string
        is_personal:
          description: Whether the organization is independent (that is, not part of a group).
          example: true
          type: boolean
        name:
          description: The display name of the organization.
          example: My Org
          type: string
        slug:
          description: The canonical (unique and URL-friendly) name of the organization.
          example: my-org
          type: string
        updated_at:
          description: The time the organization was last modified.
          example: '2022-03-16T00:00:00Z'
          format: date-time
          type: string
      required:
      - name
      - slug
      - is_personal
      type: object
    ErrorDocument:
      additionalProperties: false
      example:
        errors:
        - detail: Permission denied for this resource
          status: '403'
        jsonapi:
          version: '1.0'
      propertie

# --- truncated at 32 KB (54 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/snyk/refs/heads/main/openapi/snyk-orgs-api-openapi.yml