Jump to: navigation, search

Assign Place to Business Unit

This operation is part of the Place Management API section of the Web Services API.

Overview

Assigns a place to a business unit.

Request URL /api/v2/groups/{id}/places
HTTP Method POST
Required Features api-provisioning-write

Parameters

Parameter Value
path The path of the place to assign to the business unit.
paths The paths of several places to assign to the business unit.
uri The uri of the place to assign to the business unit.
uris The uris of several places to assign to the business unit.
Important
All parameters are independent and can be used separately from each other.

Samples

This example sends a request with the uri parameter:

Request

POST /api/v2/groups/2-6c439a40-55aa-4ecf-a52e-a6a7cd03cd28/places
{
  'uri': 'http://1.2.3.4:8080/api/v2/places/d6d40340-1e28-4d3b-bf6c-a09c59d3033f'
}

HTTP Response

{
    "statusCode": 0
}


This example sends a request with the uris parameter:

Request

POST /api/v2/groups/2-6c439a40-55aa-4ecf-a52e-a6a7cd03cd28/places
{
  'uris': [
    'http://1.2.3.4:8080/api/v2/places/d6d40340-1e28-4d3b-bf6c-a09c59d3033f',
    'http://1.2.3.4:8080/api/v2/places/14f6636cf11447919604ac42f952e2a2'
  ]
}

HTTP Response

{
    "statusCode": 0
}


This example sends a request with the path parameter:

Request

POST /api/v2/groups/2-83a7bfc5-8151-4079-8ab8-cbc130656a58/places
{
  'path': '/places/0e0bb396-3dc3-42a9-9b20-f1e66e0805cd'
}

HTTP Response

{
    "statusCode": 0
}


This example sends a request with the paths parameter:

Request

POST /api/v2/groups/2-83a7bfc5-8151-4079-8ab8-cbc130656a58/places
{
  'paths': [
    '/places/0e0bb396-3dc3-42a9-9b20-f1e66e0805cd', 
    '/places/b24c94d1-d31e-4a97-853f-50aabd5c159f'
  ]
}

HTTP Response

{
    "statusCode": 0
}
This page was last edited on January 22, 2016, at 19:57.
Comments or questions about this documentation? Contact us for support!