POST /api/v1/share
Authenticate with Authorization: Bearer YOUR_API_KEY and X-Project-Id: YOUR_PROJECT_ID. Replace path placeholders and example values with your project's values.
Parameters
| Name | Location | Type | Presence | Description |
|---|---|---|---|---|
X-Project-Id | header | string (uuid) | Required | Project UUID. Use the project associated with your API key. |
Request Body
Create request.json with the fields this operation requires. The examples read that file.
| Field | Type | Presence | Description |
|---|---|---|---|
event_created_at | string (yyyy-mm-ddThh:MM:ssZ) | Required | |
event_id | string (uuid) | Required | |
event_type | request | log | span | Optional |
JSON schema
{
"properties": {
"event_created_at": {
"$ref": "#/components/schemas/UTCTime"
},
"event_id": {
"$ref": "#/components/schemas/UUID"
},
"event_type": {
"enum": [
"request",
"log",
"span"
],
"type": "string"
}
},
"required": [
"event_id",
"event_created_at"
],
"type": "object"
}Examples
Responses
HTTP 200
Response defined by the API schema.
| Field | Type | Presence | Description |
|---|---|---|---|
id | string (uuid) | Required | |
url | string | Required |
JSON schema
{
"properties": {
"id": {
"$ref": "#/components/schemas/UUID"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"url"
],
"type": "object"
}HTTP 400
Refused; error.code says why
| Field | Type | Presence | Description |
|---|---|---|---|
error | object | Required |
JSON schema
{
"properties": {
"error": {
"$ref": "#/components/schemas/ApiProblem"
}
},
"required": [
"error"
],
"type": "object"
}HTTP 401
Refused; error.code says why
| Field | Type | Presence | Description |
|---|---|---|---|
error | object | Required |
JSON schema
{
"properties": {
"error": {
"$ref": "#/components/schemas/ApiProblem"
}
},
"required": [
"error"
],
"type": "object"
}HTTP 404
Refused; error.code says why
| Field | Type | Presence | Description |
|---|---|---|---|
error | object | Required |
JSON schema
{
"properties": {
"error": {
"$ref": "#/components/schemas/ApiProblem"
}
},
"required": [
"error"
],
"type": "object"
}