SubmitToProject

Submits a new item into a specified project.

Parameters

Name Type Description
submittoproject Function

Submits a new item into a project. Call StartSubmitToProject first to get an item's field names or IDs.

project
  • ID (integer)
  • UUID (string)
  • internalname (string)

The project identifier.

Post Data

Name Type Description
itemOptions

(optional)

ItemOptions

Use itemOptions to limit the response data.

When itemOptions are included, only the specified fields, plus fields required by the transition, are sent in the response.

transition Transition

Use transition to provide new field values. Only provide values for fields that you want to change. Note that you must provide values for any required fields in the transition you are calling.

Example

URL:

http://AEserverName/jsonapi/submittoproject/UBG_ISSUES.ANIMATION_PRO

Post data:

{transition:{"TITLE":"Browser hangs"}, fixedFields: false, fields: [{dbname:"TITLE"}]}

Response:

{
  "item": {
    "id": {
      "id": 142,
      "uuid": "e3e94173-92e8-4c98-bd07-33277f58dd62",
      "itemIdPrefixed": "000196",
      "itemId": "000196",
      "url": "http://AEserverName:80/tmtrack/tmtrack.dll?...Template=view&TableId=1000"
    },
    "table": {
      "id": 1000,
      "uuid": "dc8cd329-b430-436f-bb75-bf90008e6a50",
      "name": "Issues",
      "dbName": "UBG_ISSUES"
    },
    "fieldMetadata": [
      {
        "id": 54,
        "name": "Title",
        "dbname": "TITLE",
        "syscode": 4,
        "type": "text",
        "renderHtml": false,
        "password": false,
        "maxLength": 80
      }
    ],
    "fields": {
      "TITLE": {
        "value": "Browser hangs"
      }
    }
  },
  "result": {
    "type": "OK",
    "msg": ""
  }
}

Comments

None.