Edit in GitHubLog an issue

Event Metadata

For information on installing and using the SDK, please begin by reading the getting started guide.

Get All Event Metadata for Provider

This method returns a list of all event metadata for a given provider.

Method

Copied to your clipboard
getAllEventMetadataForProvider(providerId) ⇒ Promise.<object>
ParameterTypeDescription
providerId
string
The ID that uniquely identifies the provider whose event metadata is to be fetched.

Sample Response

Copied to your clipboard
{ "_links":
{ "self":
{
"href": "https://api.adobe.io/events/providers/<provider-id>/eventmetadata"
}
},
"_embedded":
{
"event_metadata": [
{ "_links": {
"rel:sample_event": {
"href": "https://api.adobe.io/events/providers/<provider-id>/eventmetadata/<event-code-1>/sample_event"
},
"rel:update": {
"href": "https://api.adobe.io/events/<consumerId>/<projectId>/<workspaceId>/providers/<provider-id>/eventmetadata/<event-code-1>"
},
"self": {
"href": "https://api.adobe.io/events/providers/<provider-id>/eventmetadata/<event-code-1>"
}
},
"description": "<description>",
"label": "<label>",
"event_code": "<event-code-1>",
},
...
]
}
}

Get Event Metadata for Given Provider and Event Code

You can return metadata for a single event by providing a provider ID and an event code.

Method

Copied to your clipboard
getEventMetadataForProvider(providerId, eventCode) ⇒ Promise.<object>
ParameterTypeDescription
providerId
string
The ID that uniquely identifies the provider whose event metadata is to be fetched.
eventCode
string
The specific event code for which the details of the event metadata is to be fetched.

Sample Response

Copied to your clipboard
{
"_links": {
"rel:sample_event": {
"href": "https://api.adobe.io/events/providers/<provider-id>/eventmetadata/<event-code>/sample_event"
},
"rel:update": {
"href": "https://api.adobe.io/events/<consumerId>/<projectId>/<workspaceId>/providers/<provider-id>/eventmetadata/<event-code>"
},
"self": {
"href": "https://api.adobe.io/events/providers/<provider-id>/eventmetadata/<event-code>"
}
},
"description": "<description>",
"label": "<label>",
"event_code": "<event-code>"
}

Create Event Metadata for a Provider

This function is used to add various event types for a provider.

Method

Copied to your clipboard
createEventMetadataForProvider(consumerOrgId, projectId, workspaceId, providerId, body) ⇒ Promise.<object>
ParameterTypeDescription
consumerOrgId
string
Consumer Organization ID from Adobe Developer Console.
projectId
string
Project ID from Adobe Developer Console.
workspaceId
string
Workspace ID from Adobe Developer Console.
providerId
string
Provider ID for which the event metadata is to be added.
object
JSON data that describes the event metadata.

Sample Creation Request Body

Copied to your clipboard
{
"label": "test-label",
"description": "Test for SDK 1",
"event_code": "event_code_1"
}

Update Event Metadata for a Provider

You can update the description and label of the event metadata by providing the event code of the event metadata to be updated.

Method

Copied to your clipboard
updateEventMetadataForProvider(consumerOrgId, projectId, workspaceId, providerId, eventCode, body) ⇒ Promise.<object>
ParameterTypeDescription
consumerOrgId
string
Consumer Organization ID from Adobe Developer Console.
projectId
string
Project ID from Adobe Developer Console.
workspaceId
string
Workspace ID from Adobe Developer Console.
providerId
string
Provider ID for which the event metadata is to be added.
eventCode
string
Event Code of the event metadata to be updated.
object
JSON data that describes the updated event metadata.

Sample Update Request Body

Copied to your clipboard
{
"label": "new-label",
"description": "Updated description for SDK 1",
"event_code": "event_code_1"
}

Delete Event Metadata

You can delete metadata for a specific event by providing the event code along with the associated provider ID.

Method

Copied to your clipboard
deleteEventMetadata(consumerOrgId, projectId, workspaceId, providerId, eventCode) ⇒ Promise
ParameterTypeDescription
consumerOrgId
string
Consumer Organization ID from Adobe Developer Console.
projectId
string
Project ID from Adobe Developer Console.
workspaceId
string
Workspace ID from Adobe Developer Console.
providerId
string
Provider ID for which the event metadata is to be deleted.
eventCode
string
Event Code of the event metadata to be deleted.

Response

Returns HTTP Status 204 (No Content) once the deletion is successful. If the eventCode or providerId does not exist, HTTP Status 404 (Not Found) is returned.

Delete All Event Metadata

You can delete all event metadata for a provider by specifying a provider ID.

Method

Copied to your clipboard
deleteAllEventMetadata(consumerOrgId, projectId, workspaceId, providerId) ⇒ Promise
ParameterTypeDescription
consumerOrgId
string
Consumer Organization ID from Adobe Developer Console.
projectId
string
Project ID from Adobe Developer Console.
workspaceId
string
Workspace ID from Adobe Developer Console.
providerId
string
Provider ID for which the event metadata is to be deleted.

Response

Returns HTTP Status 204 (No Content) once the deletion is successful. If the providerId does not exist, HTTP Status 404 (Not Found) is returned.

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.