Skip to main content

List Custom API Role Policies

GET 

/v2/permissions/custom-api-role-policies

Retrieves a list of Custom API Role Policies

Filtering

The following operators and attributes are available for filtering Custom APIs:

AttributeOperatorsExample
idlt,le,eq,gt,ge,ineq(id,3fa85f64-5717-4562-b3fc-2c963f66afa6)
created_atlt,le,eq,gt,gege(created_at,2024-04-29T00:00:00.000Z)
updated_atlt,le,eq,gt,gele(updated_at,2024-04-29T00:00:00.000Z)
custom_api_ideqeq(id,fded1d2a-8bb8-48b6-86a5-9eb05cc8626a)
role_ideqeq(id,f5f77dd6-71df-48a4-b4f4-d2605a79f3ca)

Sorting

The following attributes are available for sorting. When specified, the results are sorted in ascending order based on the value of the field. To sort in descending order, prefix the attribute with -, for example, -updated_at. The default sort order is created_at in descending order.

  • id
  • created_at
  • updated_at

Request

Query Parameters

    page[offset] int64

    Possible values: <= 10000

    The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the page length store setting is used.

    page[limit] int64

    The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the page length store setting is used.

    filter string

    Filter attributes. For more information, see the Filtering section.

    sort string

    Sort attributes, For more information, see the Sorting section.

Responses

OK

Schema
    data CustomAPIRolePolicyAttributes[]
  • Array [
  • id uuid

    The unique identifier for the Custom API Role Policy.

    type string

    Specifies the type of the resource object, use custom_api_role_policy for Custom API Role Policies.

    create boolean

    Specifies if the Built-in Role can create a Custom API Entry.

    list boolean

    Specifies if the Built-in Role can retrieve a list of Custom API Entries.

    read boolean

    Specifies if the Built-in Role can get a Custom API Entry.

    update boolean

    Specifies if the Built-in Role can update a Custom API Entry.

    delete boolean

    Specifies if the Built-in Role can delete a Custom API Entry.

    links object
    self uri

    Specifies the URI of the Built-In Role.

    meta object
    timestamps objectrequired
    updated_at stringrequired

    Specifies the date the entity is created.

    created_at stringrequired

    Specifies the date the entity is last updated.

    relationships object
    custom_api objectrequired
    data objectrequired
    id stringrequired

    The unique identifier for the related Custom API.

    type stringrequired

    Specifies the type of the resource object.

    role objectrequired
    data objectrequired
    id stringrequired

    The unique identifier for the related Built-In Role.

    type stringrequired

    Specifies the type of the resource object.

  • ]
  • meta object
    results objectrequired
    total integer

    Total number of results for the entire collection.

    page objectrequired
    limit integer

    The maximum number of records for all pages.

    offset integer

    The current offset by number of pages.

    current integer

    The current number of pages.

    total integer

    The total number of records for the entire collection.

    links object
    current urirequired

    Always the current page.

    first urirequired

    Always the first page.

    last urirequired

    Always null if there is only one page.

    next stringnullrequired

    Always null if there is only one page.

    prev stringnullrequired

    Always null if the user is on the first page.

Loading...