curl --request PUT \
--url https://platform.versori.com/api/v2/o/{organisation_id}/projects/{project_id}/workflows/{flow_name} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"spans": [
{
"name": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"duration": 123,
"attributes": {},
"status": {
"code": 0
},
"ended": true,
"events": [
{
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"attributes": {}
}
],
"spanContext": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
},
"parentSpanContext": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
},
"parentSpanContenxt": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
}
}
],
"id": "<string>"
}
'{
"name": "<string>",
"description": "<string>",
"spans": [
{
"name": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"duration": 123,
"attributes": {},
"status": {
"code": 0
},
"ended": true,
"events": [
{
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"attributes": {}
}
],
"spanContext": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
},
"parentSpanContext": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
},
"parentSpanContenxt": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
}
}
],
"id": "<string>"
}UpdateIntegrationFlow updates or creates a new flow with the given name. This endpoint will overwrite the entire flow with the provided data.
curl --request PUT \
--url https://platform.versori.com/api/v2/o/{organisation_id}/projects/{project_id}/workflows/{flow_name} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"spans": [
{
"name": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"duration": 123,
"attributes": {},
"status": {
"code": 0
},
"ended": true,
"events": [
{
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"attributes": {}
}
],
"spanContext": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
},
"parentSpanContext": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
},
"parentSpanContenxt": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
}
}
],
"id": "<string>"
}
'{
"name": "<string>",
"description": "<string>",
"spans": [
{
"name": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"duration": 123,
"attributes": {},
"status": {
"code": 0
},
"ended": true,
"events": [
{
"name": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"attributes": {}
}
],
"spanContext": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
},
"parentSpanContext": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
},
"parentSpanContenxt": {
"traceId": "<string>",
"spanId": "<string>",
"traceFlags": 123
}
}
],
"id": "<string>"
}Bearer token authentication used by the Versori Platform. External consumers must provide an API key, however internal consumers must provide a JWT id_token issued by our IdP.