Sets the subject of the Task.

Parameters

id

The ID of the Task.

val

The new subject of the Task.

Example

FM_api('Task_setSubject', ['id' => '1', 'val' => 'Task One']);

Result

On Success

{'ok:1'}

If the subject is not actually changed: {'ok:1','warning':'No change made'}

On Failure

If the user is not logged in: {'error':'not logged in'}

If the Task does not exist: {'error':'Task does not exist'}

If the subject is greater than 128 characters in length: {'error':'Subject too long. 128 characters max'}