Organization

Create organization client

post

Required permissions: Organization.Organization.ReadWrite

Authorizations
Path parameters
organizationIdinteger · int32Required

The organization identifier

Body
all ofOptional
Responses
200

The organization client was created

application/json
post
/api/organization/{organizationId}/client
POST /api/organization/{organizationId}/client HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
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

Authorizations
Path parameters
organizationIdinteger · int32Required

The organization identifier

clientIdinteger · int32Required

The organization client identifier

Responses
204

The organization client was deleted

No content

delete
/api/organization/{organizationId}/client/{clientId}
DELETE /api/organization/{organizationId}/client/{clientId} HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Rotate organization client secret

put

Required permissions: Organization.Organization.ReadWrite

Authorizations
Path parameters
organizationIdinteger · int32Required

The organization identifier

clientIdinteger · int32Required

The organization client identifier

Responses
200

The organization client secret was rotated

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

Last updated

Was this helpful?