application/json

Body Required

  • id string(uuid)
  • 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 object
      Hide data attributes Show data attributes object
PATCH /admin/permission/update
curl \
 --request PATCH 'https://sandbox.serchservice.com/api/v1/admin/permission/update' \
 --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 '{"id":"string","account":"string","scopes":[{"id":42,"scope":"USER","permissions":[{"permission":"WRITE","reason":"string","id":42}]}]}'
Request examples
{
  "id": "string",
  "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": {
    "role": "USER",
    "position": "string",
    "department": "string",
    "cluster": [
      {
        "id": 42,
        "scope": "USER",
        "createdAt": "string",
        "updatedAt": "string",
        "permissions": [
          {
            "id": 42,
            "createdAt": "string",
            "updatedAt": "string",
            "expiration": "string",
            "permission": "WRITE"
          }
        ]
      }
    ],
    "specific": [
      {
        "account": "string",
        "name": "string",
        "scopes": [
          {
            "id": 42,
            "scope": "USER",
            "createdAt": "string",
            "updatedAt": "string",
            "permissions": [
              {
                "id": 42,
                "createdAt": "string",
                "updatedAt": "string",
                "expiration": "string",
                "permission": "WRITE"
              }
            ]
          }
        ]
      }
    ]
  }
}