GET

Get organizations

Returns all organizations within a service project for a given service project id.

Request

Path parameters

serviceDeskId

string

Required

Query parameters

start

number

limit

number

Responses

Returns the requested organizations

application/json

object
GET/servicedeskapi/servicedesk/{serviceDeskId}/organization
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 { "_expands": [ "<string>" ], "size": 1, "start": 0, "limit": 50, "isLastPage": true, "_links": { "base": "<string>", "context": "<string>", "next": "<string>", "prev": "<string>", "self": "<string>" }, "values": [ { "id": "<string>", "name": "<string>", "_links": { "self": "<string>" } } ] }
POST

Add organization

Adds an organization to a service project for a given service project id and organization id.

Request

Path parameters

serviceDeskId

string

Required

Request bodyapplication/json

The DTO of the organization to add.

organizationId

integer

Responses

Add organization was successful.

POST/servicedeskapi/servicedesk/{serviceDeskId}/organization
1 2 3 4 5 6 curl --request POST \ --url 'http://{baseurl}/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization' \ --header 'Content-Type: application/json' \ --data '{ "organizationId": 2154 }'
DEL

Remove organization

Removes an organization from a service project for a given service project id and organization id.

Request

Path parameters

serviceDeskId

string

Required

Request bodyapplication/json

The DTO of the organization to add.

organizationId

integer

Responses

Remove organization was successful.

DEL/servicedeskapi/servicedesk/{serviceDeskId}/organization
1 2 3 4 5 6 curl --request DELETE \ --url 'http://{baseurl}/rest/servicedeskapi/servicedesk/{serviceDeskId}/organization' \ --header 'Content-Type: application/json' \ --data '{ "organizationId": 2154 }'

Rate this page: