Subtasks eines Tasks

Ähnliches Problem wie unter: https://community.awork.com/t/api-subtasks-eines-tasks-abrufen/1984:

Ich möchte alle Subtasks eines Tasks auf einen bestimmten Status setzen. Das Setzen des Status habe ich im Griff, aber ich bekomme die Taskliste nicht heraus. Es müsste doch so gehen:
https://api.awork.com/api/v1/projects/da9819ea-\[…\]-8d16-f3f2e69e5c15/projecttasks?filterby=parentId eq guid’2ec7200-[…]-2cf4cdfbb56c’/subtasks?$select=id

ich bekomme aber einen 403 - woran könnte es liegen?
Viele Grüße,

Christian

Hi @Christian9 , can you try with lowercase guid?

ah - yes - that I already figured out with the help of your awork AI :slight_smile: - still a 403 Just forgot to change that after copy paste. I’ll correct that in the original post to avoid any confusion for people who read this later.

I think there are several things wrong with your URL.

  1. There is a /subtasks at the end of the filter expression. This should not be there.
  2. The ?$select=id part is not supported either so needs to be removed.

I tried it with the following URL and this works for me:
https://api.awork.com/api/v1/projects/04826cfc-…/projecttasks?filterby=parentId eq guid'2059915c-…'

tried it by replacing only the IDs with my project and my parent task IDs - still 403

Can you please share the full cURL without token and the trace id you get in the response?

Also, please be aware that the single quotes ' used here in the forum might not be the correct ones you need to use., specially when not used inside of a code block.