Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Create

Description

Creates a new metadata structure for a service.

Package Details

Interface

IMetadataStructureManager

Syntax

Task<MetadataStructure> Create(MetadataStructureDTO metadataStructure);

Returns

Task<MetadataStructure>

API Endpoint

POST

/api/v1/metadata-definitions

Parameters

Parameter

Description

Parameter Type

metadataStructure

Object used to create a new metadata structure for a service.

Request body

Sample request body

{
  "ServiceId": 0,
  "VersionNumber": "string",
  "MetadataStructureColumns": [
    {
      "ColumnName": "string",
      "DataType": "string",
      "KeyName": "string",
      "KeyNameEng": "string",
      "KeyNameFra": "string",
      "IsSearchable": true
    }
  ]
}

Returns

On success, 200 OK

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

 

  • No labels