Creates a single OauthServerClientPermission

POST /api/opendata/oauth/server_clients_permission/{clientIdentifier}

Path parameters

  • clientIdentifier string Required

Query parameters

  • iw-build-id string

    build id of the client

  • iw-package-id string

    package id of the client

application/json

Body Required

  • data object
    Hide data attributes Show data attributes object
    • scopes string
    • active boolean

Responses

  • 200 application/json

    Creates a single OauthServerClientPermission

    Hide response attributes Show response attributes object
    • id integer
    • scopes string
    • active boolean
    • is_dg boolean
    • selected_customer object
      Hide selected_customer attributes Show selected_customer attributes object
      • id integer
      • slackchannel string
      • displayname string
      • deleted boolean
      • created string(date-time)
      • updated string(date-time)
    • name string
POST /api/opendata/oauth/server_clients_permission/{clientIdentifier}
curl \
 --request POST 'https://replace-with-own-host.iw-erp.de/api/opendata/oauth/server_clients_permission/{clientIdentifier}' \
 --header "x-session-token: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"data":{"scopes":"string","active":true}}'
Request examples
{
  "data": {
    "scopes": "string",
    "active": true
  }
}
Response examples (200)
{
  "id": 42,
  "scopes": "string",
  "active": true,
  "is_dg": true,
  "selected_customer": {
    "id": 42,
    "slackchannel": "string",
    "displayname": "string",
    "deleted": true,
    "created": "2025-05-04T09:42:00Z",
    "updated": "2025-05-04T09:42:00Z"
  },
  "name": "string"
}