Domains

Create a new domain

POST
/organizations/{organizationId}/projects/{projectId}/domains

Creates a domain in a project.

Authorization

ApiKeyAuth
headerx-api-key<token>

Path Parameters

organizationId*string
Formatuuid
projectId*string
Formatuuid

Request Body

application/json
  1. body
name?string
Lengthlength <= 256
domain*|string

Response Body

Default Response

application/json
  1. response
id*string
Formatuuid
organizationId*string
Formatuuid
projectId*string
Formatuuid
name?string
domain*|string
source?string
Default"privacy"
Value in"privacy""trust"
dateCreated*integer
dateUpdated*integer
Example Request
curl -X POST 'https://api.concord.tech/privacy-v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/domains' \  -H 'Content-Type: application/json' \  -d '{  "domain": "localhost"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",  "name": "string",  "domain": "localhost",  "source": "privacy",  "dateCreated": 0,  "dateUpdated": 0}