Skip to content

Templating


Templating is about provisioning a MS Teams user the easy way. Instead of creating or editing a user and set its properties one by one, templating allows you to apply a set of predefined properties all at once. Current supported properties in a template are the following:

  • country
  • collection of MS licenses
  • collection of MS groups
  • voice routing policy

You may define as many templates as you want per subscription. A template has a product key, a meaningful name and a description. Through a wizard, you can create new templates and tweak them to your needs. Afterward, all you have to do is applying the template to your MS users to provide them with the required properties.

Get the list of available templates

This API call allows you to retrieve all available templates for a given tenant and subscription.

Default template

A default template with id=0 will always be returned except in case of the search query parameter doesn't match. This template implements the minimum requirements for a Fusion user.

Request

Endpoint

GET /api/v01/draas/{draas_instance}/tenants/{uuid}/subscriptions/{subscription_id}/msteams/templates

Authorization

Required role

tenants.instance.subscriptions.instance.msteams.templates.list

Path Parameters

ParameterTypeDescription
draas_instancestringSee common parameters
uuidstringA system generated unique ID (UUID) identifying the tenant managing the subscription
sub_idintegerIndex of a subscription for which you want to retrieve the list of available templates

URL/Query parameters

ParameterTypeDescriptionRequired?
searchstringUsed to perform a search through all searchable properties of a template that look like the string passedno
Body

N/A

Response

Status codes

ParameterDescription
200List of found templates, with at least the default one
400Error while retrieving the templates
404The path tenant / subscription doesn't exist
500Uncatched error on server side

Success

Body
ParameterTypeDescriptionConditional?
idstringThe template ID, 0 for the default templateno
skustringThe product reference of the templateno
namestringThe name of the templateno
descriptionstringThe description of the templateno

Example

json
{
  "templates": [
    {
      "id": 0,
      "sku": "DEFAULT",
      "name": "Default Fusion Template",
      "description": "This template is the default Fusion template to use when no other templates are available"
    },
    {
      "id": 8,
      "sku": "BUT1234",
      "name": "Belgian User Template",
      "description": "This template has been implemented for dev purposes"
    },
    {
      "id": 9,
      "sku": "FUT6543",
      "name": "French User Template",
      "description": "Another template for dev purposes"
    }
  ]
}

Get the details of a template

This API call allows you to retrieve the details of a specific template for a given tenant and subscription.

Request

Endpoint

GET /api/v01/draas/{draas_instance}/tenants/{uuid}/subscriptions/{subscription_id}/msteams/templates/{template_id}

Authorization

Required role

tenants.instance.subscriptions.instance.msteams.templates.get

Path Parameters

ParameterTypeDescription
draas_instancestringSee common parameters
uuidstringA system generated unique ID (UUID) identifying the tenant managing the subscription
sub_idintegerIndex of a subscription for which you want to retrieve the details of a template
template_idintegerIndex of the template for which you want to retrieve the details

URL/Query parameters

N/A

Body

N/A

Response

Status codes

ParameterDescription
200The found template
400Error while retrieving the template
404The template doesn't exist
500Uncatched error on server side

Success

Body
ParameterTypeDescriptionConditional?
idstringThe template ID, 0 for the Default Templateno
skustringThe product reference of the templateno
namestringThe name of the templateno
descriptionstringThe description of the templateno
locationstringThe country code of the user in ISO 3166 alpha-2 formatno
voiceEnabledbooleanSpecify if the user will have the ability to make callsno
vrpstringThe voice routing policy that will be applied to the userno
groupsarrayA list of MS groups id as returned by this API callno
licensesarrayA list of MS licenses skuId as returned by this API callno
customerLicensesarrayA list of Customer licensesno

Example

json
{
  "id": 8,
  "sku": "BUT1234",
  "name": "Belgian User Template",
  "description": "This template has been implemented for dev purposes",
  "location": "BE",
  "voiceEnabled": true,
  "vrp": "World-DRaaS",
  "groups": [
    "488ce848-8b9b-4d14-8e99-90ee50ea150b",
    "47a96cc2-a9bb-4abf-97a1-4e675f5b8605"
  ],
  "licenses": [
    "18181a46-0d4e-45cd-891e-60aabd171b4e",
    "295a8eb0-f78d-45c7-8b5b-1eed5ed02dff"
  ],
  "customerLicenses": [
    "test-sku"
  ]
}

Create a new template

This API call allows you to define a template for a given tenant and subscription.

Request

Endpoint

POST /api/v01/draas/{draas_instance}/tenants/{uuid}/subscriptions/{subscription_id}/msteams/templates

Authorization

Required role

tenants.instance.subscriptions.instance.msteams.templates.create

Path Parameters

ParameterTypeDescription
draas_instancestringSee common parameters
uuidstringA system generated unique ID (UUID) identifying the tenant managing the subscription
sub_idintegerIndex of a subscription for which you want to integrate an Anywhere 365 main site

URL/Query parameters

N/A

Body
ParameterTypeDescriptionRequired
skustringThe product reference of the templateyes
namestringThe name of the templateyes
descriptionstringThe description of the templateyes
locationstringThe country code of the user in ISO 3166 alpha-2 format as returned by this API callyes
vrpstringThe voice routing policy that will be applied to the user. It must an existing identity defined in MS Teams voice section and returned by this API callyes
groupsarrayA list of MS groups id as returned by this API callno
licensesarrayA list of MS licenses skuId as returned by this API callno
customerLicensesarrayA list of Customer Licenses you want to assign to the user.no

Example

json
{
  "sku": "FUT6543",
  "name": "French User Template",
  "description": "Another template for dev purposes",
  "location": "FR",
  "vrp": "World-DRaaS",
  "groups": [
    "47a96cc2-a9bb-4abf-97a1-4e675f5b8605",
    "488ce848-8b9b-4d14-8e99-90ee50ea150b"
  ],
  "licenses": [
    "295a8eb0-f78d-45c7-8b5b-1eed5ed02dff",
    "18181a46-0d4e-45cd-891e-60aabd171b4e"
  ]
}

Response

Status codes

ParameterDescription
204The template was created successfully
400Error while creating the template
404The path tenant / subscription doesn't exist
500Uncatched error on server side

Success

Body

N/A

Update a template

This API call allows you to update a template for a given tenant and subscription.

Request

Endpoint

PUT /api/v01/draas/{draas_instance}/tenants/{uuid}/subscriptions/{subscription_id}/msteams/templates/{template_id}

Authorization

Required role

tenants.instance.subscriptions.instance.msteams.templates.update

Path Parameters

ParameterTypeDescription
draas_instancestringSee common parameters
uuidstringA system generated unique ID (UUID) identifying the tenant managing the subscription
sub_idintegerIndex of a subscription for which you want to integrate an Anywhere 365 main site
template_idintegerIndex of the template you want to delete

URL/Query parameters

N/A

Body
ParameterTypeDescriptionRequired
namestringThe name of the templateno
descriptionstringThe description of the templateno
locationstringThe country code of the user in ISO 3166 alpha-2 format as returned by this API callno
vrpstringThe voice routing policy that will be applied to the user. It must an existing identity defined in MS Teams voice section and returned by this API callno
groupsarrayA list of MS groups id as returned by this API callno
licensesarrayA list of MS licenses skuId as returned by this API callno
customerLicensesarrayA list of Customer Licenses you want to assign to the user.no

Example

json
{
  "name": "French User Template",
  "description": "Another template for dev purposes",
  "location": "FR",
  "vrp": "World-DRaaS",
  "groups": [
    "47a96cc2-a9bb-4abf-97a1-4e675f5b8605",
    "488ce848-8b9b-4d14-8e99-90ee50ea150b"
  ],
  "licenses": [
    "295a8eb0-f78d-45c7-8b5b-1eed5ed02dff",
    "18181a46-0d4e-45cd-891e-60aabd171b4e"
  ],
  "customerLicenses": [
    "test-sku"
  ]
}

Response

Status codes

ParameterDescription
204The template was updated successfully
400Error while creating the template
404The path tenant / subscription doesn't exist
500Uncatched error on server side

Success

Body

N/A

Delete a template

This API call allows you to delete an existing template for a given tenant and subscription.

Request

Endpoint

DELETE /api/v01/draas/{draas_instance}/tenants/{uuid}/subscriptions/{subscription_id}/msteams/templates/{template_id}

Authorization

Required role

tenants.instance.subscriptions.instance.msteams.templates.delete

Path Parameters

ParameterTypeDescription
draas_instancestringSee common parameters
uuidstringA system generated unique ID (UUID) identifying the tenant managing the subscription
sub_idintegerIndex of a subscription for which you want to integrate an Anywhere 365 main site
template_idintegerIndex of the template you want to delete

URL/Query parameters

N/A

Body

N/A

Response

Status codes

ParameterDescription
204The template was deleted successfully. If the template didn't exist, the delete will be considered as being executed successfully
400Error while deleting the template
404The path tenant / subscription doesn't exist
500Uncatched error on server side

Success

Body

N/A