POST /config/extension_management/extensions/{extension_id}/metadata

Adds metadata to the Extension corresponding to the supplied extension_id.

Adds metadata to the Extension corresponding to the supplied extension_id.

Table 1. POST /config/extension_management/extensions/{extension_id}/metadata resource details
MIME Type

application/json

Table 2. POST /config/extension_management/extensions/{extension_id}/metadata request parameter details
Parameter Type Optionality Data Type MIME Type Description

extension_id

path

Required

Number (Integer)

text/plain

Required - The id of the extension.

fields

header

Optional

String

text/plain

Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas.

Table 3. POST /config/extension_management/extensions/{extension_id}/metadata request body details
Parameter Data Type MIME Type Description Sample

metadata

Object

application/json

Required - Metadata to be added to the extension.

{ "app_oauth_users": [ {"app_name": "TestApp1", "user_id": 5} ] }

Table 4. POST /config/extension_management/extensions/{extension_id}/metadata response codes
HTTP Response Code Unique Code Description

404

22603

The requested extension cannot be found.

422

22606

A supplied numeric parameter was not positive.

422

22607

The supplied metadata was not correct

500

22602

An error occurred while trying to add the metadata.

Response Description

the metadata that was added.

Response Sample


{
    "app_oauth_users": [
        {"app_name": "TestApp1", "user_id": 5}
    ]
}