Function: event.AddContext
Adds a user defined context to an Event.
Syntax
{
"method": "event.AddContext",
"params": {
"id": "...",
"context": "...",
},
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}AdvFuture<int> AddContext( AdvGuid id, EventContext context );public Task<long> AddContextAsync(Guid id, EventContext context, CancellationToken ct = default);addContext(id: string, context: EventContext): Promise<number>;Parameters
id : guid
Id of the Event to add the context to.
context : EventContext
Context to add.
Result : int
Id of the newly added context. This Id is only valid for the Event the context was created for.
Errors
Data.NotFound ≥wg 0.4.10
The requested data was not found or the caller does not have the required permission to access it. For additional information, see Data.NotFound.
Data.Forbidden ≥wg 0.4.10
The caller does not have the required permissions to access the data. For additional information, see Data.Forbidden.
Remarks
This method requires API write access.