Skip to content

nodes_datalinks_retry_create

POST
/api/nodes/{node_pk}/datalinks/{id}/retry
curl --request POST \
--url https://example.com/api/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/datalinks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/retry \
--header 'Authorization: Bearer <token>' \
--header 'X-Workspace: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0'

Run again the enrichment of the data of a datalink.

Accepted when the data is failed, or when it is in progress although nothing enriches it any longer: its task is over, was cancelled, or was queued longer ago than a task may run. The data turns in progress and a new task, identified by task_id, reads it from its source.

id
required
string format: uuid

A UUID string identifying this data link.

node_pk
required
string format: uuid
X-Workspace
required
string format: uuid

Workspace ID

Media typeapplication/json

Serializer for the answer to the retry of the enrichment of a datalink.

object
task_id
required
string format: uuid
datalink
required

Serializer for Datalink.

object
id
required
string format: uuid
node
required
string format: uuid
data
required
string format: uuid
data_obj
required

Return serialized data object with request context.

Parameters

obj : DataLink The object containing the data that needs to be serialized.

Returns

DatalinkDataSerializer A DatalinkDataSerializer object is being returned, with the data attribute of the input obj and the context set to include the request from the current context.

object
key
additional properties
created_by
required

Return the interactor information of the object’s creator.

Parameters

obj : DataLink The object containing the creator information.

Returns

dict The interactor information of the creator.

object
key
additional properties
created_time
required
string format: date-time

Example generated

{
"task_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"datalink": {
"node": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"data": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
}
Media typeapplication/json
object
code
required
string
>= 1 characters
message
required
string
>= 1 characters
details
required
Array<object>
object
parameter
string
nullable
code
string
nullable
message
string

Example

{
"code": "forbidden",
"message": "You do not have permission to perform this operation. Check the `details` property for more details.",
"details": [
{
"parameter": "node",
"message": "Your role does not allow creation for this node.",
"code": "permission_denied"
}
]
}
Media typeapplication/json
object
code
required
string
>= 1 characters
message
required
string
>= 1 characters
details
required
Array<object>
object
parameter
string
nullable
code
string
nullable
message
string

Example

{
"code": "object_not_found",
"message": "Object not found. Check the `details` property for more details.",
"details": [
{
"parameter": "<id>",
"code": "does_not_exist",
"message": "\"<id>\" does not exist."
}
]
}
Media typeapplication/json
object
code
required
string
>= 1 characters
message
required
string
>= 1 characters
details
required
Array<object>
object
parameter
string
nullable
code
string
nullable
message
string

Example

{
"code": "data_enrichment_not_retriable",
"message": "The enrichment of the data cannot be run again.",
"details": [
{
"parameter": "data",
"message": "Data '<data id>' is already enriched.",
"code": "active"
}
]
}