application/json

Body Required

  • cluster object
    Hide cluster attributes Show cluster attributes object
    • id integer(int64)
    • scope string

      Values are USER, PROVIDER, ASSOCIATE_PROVIDER, BUSINESS, PAYMENT, SUPPORT, PRODUCT, ADMIN, or GUEST.

    • permissions array[object]
      Hide permissions attributes Show permissions attributes object
  • specific object
    Hide specific attributes Show specific attributes object
    • account string
    • scopes array[object]
      Hide scopes attributes Show scopes attributes object
      • id integer(int64)
      • scope string

        Values are USER, PROVIDER, ASSOCIATE_PROVIDER, BUSINESS, PAYMENT, SUPPORT, PRODUCT, ADMIN, or GUEST.

      • permissions array[object]
        Hide permissions attributes Show permissions attributes object

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • status string
    • code integer(int32)
    • message string
    • data string
POST /admin/permission/request
curl \
 --request POST 'https://sandbox.serchservice.com/api/v1/admin/permission/request' \
 --header "X-Serch-Signed: $API_KEY" \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "X-Serch-Drive-Api-Key: $API_KEY" \
 --header "X-Serch-Drive-Secret-Key: $API_KEY" \
 --header "X-Serch-Guest-Api-Key: $API_KEY" \
 --header "X-Serch-Guest-Secret-Key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"cluster":{"id":42,"scope":"USER","permissions":[{"permission":"WRITE","reason":"string","id":42}]},"specific":{"account":"string","scopes":[{"id":42,"scope":"USER","permissions":[{"permission":"WRITE","reason":"string","id":42}]}]}}'
Request examples
{
  "cluster": {
    "id": 42,
    "scope": "USER",
    "permissions": [
      {
        "permission": "WRITE",
        "reason": "string",
        "id": 42
      }
    ]
  },
  "specific": {
    "account": "string",
    "scopes": [
      {
        "id": 42,
        "scope": "USER",
        "permissions": [
          {
            "permission": "WRITE",
            "reason": "string",
            "id": 42
          }
        ]
      }
    ]
  }
}
Response examples (200)
{
  "status": "100 CONTINUE",
  "code": 42,
  "message": "string",
  "data": "string"
}