Create task with resource_subtype = request

Hi everyone,

I’d like to create tasks with the subtype “request” via the API. Is this currently supported, and if so, could someone point me to the relevant documentation or provide an example?

Any help would be greatly appreciated. Thanks!

Welcome, @André_NOV,

Is request a custom task type or a status of a custom task type you use?

In either case, I think this Google AI search result explains it well. [See below posts instead.]

Thanks,

Larry

Hi @lpb,

thank you very much for your help. Unfortunately following the steps provided by the Google AI answer does not work. I’m getting the following error message;

{
“errors”: [
{
“error”: “custom_type_feature_not_supported_for_this_route”,
“message”: “The custom type feature is not supported on this route”,
“user_message”: “Die Funktion f\u00c3\u00bcr benutzerdefinierte Typen wird auf dieser Route nicht unterst\u00c3\u00bctzt”,
“help”: “For more information on API status codes and how to handle them, read the docs on errors: Errors
}
]
}

  • So I guess that it’s simply not possible via the API to create tasks of custom sub types (at least for now).

Hi @André_NOV ,

It’s possible, but slightly in a different way. You should create a task and then change to your custom type. I tested it earlier, and it worked.

  1. POST /tasks — create the task normally
  2. PUT /tasks/{task_gid} — update it with resource_subtype: "custom" and the custom_type GID

Thank you @Alexander_Khludenev , that’s indeed the proper workaround. It was discussed earlier in this thread.

Thanks, all, and sorry for giving a misleading answer (which I didn’t test myself!). I updated my post.

Sorry,

Larry

Perfect - @Alexander_Khludenev. That works.

Thank you everyone for the quick help!

André