Discussions

Ask a Question
Back to All

Error when trying to create a task (solved)

For anyone else getting this error when creating a task:

I get the error:
400 related_object is not valid

The docs do not say anything about having to include the related object (plus that field isn't marked as required) nor do the docs explain what a related object is.

But... you do in fact need to include a related object, like the Job.

You need to use two fields, like so:

"related_object":"job",
"related_object_uuid":"b668721f------"

The "related_object" term appears to come from the endpoint name, for example, the two I used were:
job.json
jobcontact.json

Hope that helps someone.