Previous Next JavaScript must be enabled to correctly display this content

## Create a domain

post

/PASService/rest/services/v1/url/domains

Creates single or multiple domains.

### Request

There are no request parameters for this operation.

Supported Media Types

- application/json

Request Body - application/json ()
Root Schema : schema
Type: `string`
Back to Top

### Response

#### 201 Response

This section describes the 201 status response for this operation. This response code indicates that the operation has completed successfully.
Back to Top

### Examples

This example describes how to create single or multiple domains.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

    curl -X POST \
         -H "Accept: application/json" \
         -H "Content-Type: application/json" \
         -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
         -L "http://server:port/PASService/rest/services/v1/url/domains" \
         -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body

The following shows an example of the request body in JSON format:

    {
      "domains": [
        {
          "domainName": "oracle.com"
        },
        {
          "domainName": "adobe.com"
        }
      ]
    }

Example Response Body

The following shows an example of the response body in JSON format:

    {
        "domains": [
            "D418BB5B-EE2E-47C0-B6FC-96A9B2E8F174",
            "B6DE80E7-0081-4A6C-B713-8EC1D88A68B3"
        ]
    }

Back to Top