Organization

Create organization client

post

Required permissions: Organization.Organization.ReadWrite

Path parameters
organizationIdinteger · int32Required

The organization identifier

Body
all ofOptional
Responses
200

The organization client was created

application/json
post
POST /api/organization/{organizationId}/client HTTP/1.1
Host: qa-api.switchmarket.se
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "clientName": "text",
  "rolesIds": [
    1
  ]
}
{
  "id": 1,
  "organizationId": 1,
  "clientId": "text",
  "clientSecret": "text",
  "clientName": "text",
  "hint": "text",
  "roleIds": [
    1
  ]
}

Delete organization client

delete

Required permissions: Organization.Organization.ReadWrite

Path parameters
organizationIdinteger · int32Required

The organization identifier

clientIdinteger · int32Required

The organization client identifier

Responses
204

The organization client was deleted

No content

delete
DELETE /api/organization/{organizationId}/client/{clientId} HTTP/1.1
Host: qa-api.switchmarket.se
Accept: */*

No content

Rotate organization client secret

put

Required permissions: Organization.Organization.ReadWrite

Path parameters
organizationIdinteger · int32Required

The organization identifier

clientIdinteger · int32Required

The organization client identifier

Responses
200

The organization client secret was rotated

application/json
put
PUT /api/organization/{organizationId}/client/{clientId}/secret HTTP/1.1
Host: qa-api.switchmarket.se
Accept: */*
{
  "id": 1,
  "organizationId": 1,
  "clientId": "text",
  "clientSecret": "text",
  "clientName": "text",
  "hint": "text",
  "roleIds": [
    1
  ]
}

Was this helpful?