Organisation Group APIs

Delete Organisations from Organisation Group

OVERVIEW

Overview

Remove multiple active organisations from an existing Organisation Group in Publisher

Since v5.0

HTTP Request

DELETE  /api/2/organisationgroups/<ID>/organisations/<ORGIDs>

 
URL Parameters
Parameter Description
ID The ID of the organisation group to update
ORGIDs List of Organisation IDs to remove, separated by comma

 

HTTP Headers
HTTP Request Header Description Example
Authorization The API Authorisation token. "Bearer XXXXXXXXXXXXX"
Accept

The format of the expected response

  • "application/json"
  • "application/xml"

If no parameter is set, JSON is the default response given.

"application/xml"
Content-Type

The format of the provided content

  • "application/json"
  • "application/xml"

If no parameter is set, JSON is the expected content by default.

"application/json"

 

HTTP Response

Success

HTTP response 200 with Organisation Group object

(Example below)

 

Error

See API Error messages 

 

Example HTTP Request & Response

DELETE http://example.com/context/api/2/organisationgroups/3/organisations/24,25,26

 

JSON Response

{

    "organisationgroup": {

        "id": 44,

        "name": "New Organisation group 44",

        "organisations": [

            20,

            21,

            4

        ],

        "shared": 1,

        "createddate": "28-03-2018 12:58:00:000"

    }

}

 

 

Comments


0 Comments

Last Updated: Nov 08,2024