0

How to add language-independent tasks to a Classic project via API?

Thijs Senten 2 years ago in API updated by Bartosz Budzyński 2 years ago 3

In the documentation for /projects/{projectId}/tasks it is specified that languageCombination is a required field, but what if there isn't one and I need to add a language-independent task?

Hi Thijs,

Use "null" whenever you want to create a language-independent task. 


Example request body: 

{
  "name": "string",
  "clientTaskPONumber": "string",
  "languageCombination": {
    "sourceLanguageId": null,
    "targetLanguageId": null
  },
  "dates": {
    "startDate": {
      "time": 1234
    },
    "deadline": {
      "time": 1234
    },
    "actualStartDate": {
      "time": 1234
    },
    "actualDeliveryDate": {
      "time": 1234
    }
  },
  "people": {
    "responsiblePersons": {
      "projectManagerId": 1,
      "projectCoordinatorId": 1
    }
  },
  "instructions": {
    "fromCustomer": "string",
    "forProvider": "string",
    "internal": "string",
    "paymentNoteForCustomer": "string",
    "paymentNoteForVendor": "string",
    "notes": "string"
  },
  "specializationId": 2,
  "workflowId": 2
}

Best,

B.

+1

Thanks Bartosz, that makes sense.

I'm happy to help :)