Set API resource as default

PATCH /api/resources/{id}/is-default

Set an API resource as the default resource for the current tenant.

Each tenant can have only one default API resource. If an API resource is set as default, the previously set default API resource will be set as non-default. See this section for more information.

Path parameters

  • id string Required

    The unique identifier of the resource.


Body Required

  • isDefault boolean Required

    The updated value of the isDefault property.


  • 200 application/json

    The updated resource.

    Hide response attributes Show response attributes object
  • 400

    Bad Request

  • 401


  • 403


  • 404

    Not Found

PATCH /api/resources/{id}/is-default
curl \
 -X PATCH https://[tenant_id]{id}/is-default \
 -H "Content-Type: application/json" \
 -d '{"isDefault":true}'
Request examples
  "isDefault": true
Response examples (200)
  "id": "string",
  "name": "string",
  "indicator": "string",
  "isDefault": true,
  "accessTokenTtl": 42.0