Adding To Do via Rest API and UpdatedBy field is not getting set to the value I provide
search cancel

Adding To Do via Rest API and UpdatedBy field is not getting set to the value I provide

book

Article ID: 263047

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

When Creating To Do via below Rest API code, the "Created By" value is not being populated.

Instead its being created by the API user who ran it.

Here is the rest api  POST:

https://ppm-test.com/ppm/rest/v1/obaTodos

{

    "obaAssociation": 7033196,

    "name": "blah blah blahF",

    "owner": 5002076,

    "dueDate": "2021-10-29T00:00:00",

    "createdBy": "Last Name, First"

}

Environment

Release : 15.9.3

Resolution

The createdby is an audit field and the system handles updating those fields and it's can't be changed. It will always take the ID of the person who created them.