Skip to main content
PUT
/
sources
/
{sourceKey}
/
v1
/
profiles
/
{profileKey}
Create or update a Profile in the registry
curl --request PUT \
  --url https://{workspaceId}.clinia.cloud/sources/{sourceKey}/v1/profiles/{profileKey} \
  --header 'Content-Type: application/json' \
  --header 'X-Clinia-API-Key: <api-key>' \
  --data '{
  "type": "ROOT",
  "description": "<string>",
  "properties": {},
  "contained": {}
}'
{
  "key": "<string>",
  "type": "ROOT",
  "description": "<string>",
  "properties": {},
  "contained": {}
}

Authorizations

X-Clinia-API-Key
string
header
required

Path Parameters

sourceKey
string
required

The key of the source.

profileKey
string
required

The key of the profile. It must follow pattern: ^[a-zA-Z0-9-][\w-]{0,61}$.

Body

application/json
type
enum<string>
required

Type of the profile. It can be either ROOT or CONTAINED.

Available options:
ROOT,
CONTAINED
properties
object
required

Properties of the profile. It must follow pattern: ^[a-zA-Z0-9-][\w-]$.

description
string

Description of the profile.

contained
object

Contained of the profile. It must follow pattern: ^[a-zA-Z0-9-][\w-]$.

Response

The profile was created successfully.

key
string
required
type
enum<string>
required
Available options:
ROOT,
CONTAINED
properties
object
required
description
string

Description of the profile.

contained
object
I