PUT api/Contracts/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

ContractCreateUpdateCommand
NameDescriptionTypeAdditional information
IdIn3P

integer

None.

Reference

string

None.

FrameworkContract

boolean

None.

DocumentsFolder

string

None.

ProcedureCode

string

None.

NbDecimals

integer

None.

Type

ContractType

None.

Procedure

Procedure

None.

Status

ContractStatus

None.

DepartmentID

globally unique identifier

None.

Cat1ID

globally unique identifier

None.

Cat2ID

globally unique identifier

None.

Cat3ID

globally unique identifier

None.

Cat4ID

globally unique identifier

None.

Lots

Collection of LotCreateUpdateCommand

None.

Id

globally unique identifier

None.

Description

string

None.

CrmId

integer

None.

IsArchived

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "IdIn3P": 1,
  "Reference": "sample string 2",
  "FrameworkContract": true,
  "DocumentsFolder": "sample string 4",
  "ProcedureCode": "sample string 5",
  "NbDecimals": 6,
  "Type": 1,
  "Procedure": 1,
  "Status": 0,
  "DepartmentID": "25e05118-1609-4bb4-bc2c-29757471c602",
  "Cat1ID": "1af5ea31-df78-4e54-b3b5-527ac49defaa",
  "Cat2ID": "d7c55cd9-cbe9-41d0-bfc7-7efcfbfdc020",
  "Cat3ID": "8e99b6d3-36cb-44a8-8e87-38a08c7b7878",
  "Cat4ID": "3b2d4662-054b-4ee1-83ec-f876b8a0eb35",
  "Lots": [
    {
      "StartDate": "2017-12-15T21:29:17.2248629+00:00",
      "EndDate": "2017-12-15T21:29:17.2248629+00:00",
      "NotificationDate": "2017-12-15T21:29:17.2248629+00:00",
      "ExtraColsCandidates": "sample string 1",
      "ExtraColsContractingAuth": "sample string 2",
      "CanBeOrdered": true,
      "CallTermInWorkdays": true,
      "CallDeliveryTerm": 5.1,
      "MaxOrderAmount": 6.0,
      "Posts": [
        {
          "Reference": "sample string 1",
          "PostNr": 2,
          "PosNr": 3,
          "VATPercentage": 4.1,
          "UnitPrice": 5.0,
          "UOM": "sample string 6",
          "ExtraColsCandidates": "sample string 7",
          "ExtraColsContractingAuth": "sample string 8",
          "QuantityType": 1,
          "Id": "a468d058-b940-4c7c-8dc5-559975dabddf",
          "Description": "sample string 10",
          "CrmId": 11,
          "IsArchived": true
        },
        {
          "Reference": "sample string 1",
          "PostNr": 2,
          "PosNr": 3,
          "VATPercentage": 4.1,
          "UnitPrice": 5.0,
          "UOM": "sample string 6",
          "ExtraColsCandidates": "sample string 7",
          "ExtraColsContractingAuth": "sample string 8",
          "QuantityType": 1,
          "Id": "a468d058-b940-4c7c-8dc5-559975dabddf",
          "Description": "sample string 10",
          "CrmId": 11,
          "IsArchived": true
        }
      ],
      "Parts": [
        {
          "Orders": [
            {
              "LocationGuids": [
                "721a823b-ed69-4d10-8d1c-0395a0f792ca",
                "8a088257-3b4d-42be-8382-b8a41c7d54d4"
              ],
              "CreatedOn": "2017-12-15T21:29:17.2409651+00:00",
              "Status": 0,
              "TotalOrderAmount": 2.0,
              "OrderDate": "2017-12-15T21:29:17.2409651+00:00",
              "DeadlineDate": "2017-12-15T21:29:17.2409651+00:00",
              "OrderPosts": [
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                },
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                }
              ],
              "Id": "15f045ff-174c-4741-933c-36b81f838a65",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            },
            {
              "LocationGuids": [
                "721a823b-ed69-4d10-8d1c-0395a0f792ca",
                "8a088257-3b4d-42be-8382-b8a41c7d54d4"
              ],
              "CreatedOn": "2017-12-15T21:29:17.2409651+00:00",
              "Status": 0,
              "TotalOrderAmount": 2.0,
              "OrderDate": "2017-12-15T21:29:17.2409651+00:00",
              "DeadlineDate": "2017-12-15T21:29:17.2409651+00:00",
              "OrderPosts": [
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                },
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                }
              ],
              "Id": "15f045ff-174c-4741-933c-36b81f838a65",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            }
          ],
          "PartPosts": [
            {
              "AwQuantity": 1.0,
              "PostID": "401b3a4d-1db0-4cc2-a90f-26a1a8bba934",
              "Id": "e295feaa-5efc-4830-b475-faf80c0e1ea4",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            },
            {
              "AwQuantity": 1.0,
              "PostID": "401b3a4d-1db0-4cc2-a90f-26a1a8bba934",
              "Id": "e295feaa-5efc-4830-b475-faf80c0e1ea4",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            }
          ],
          "Id": "3f61e6a9-047a-41d1-bd86-c0938e7abf17",
          "Description": "sample string 2",
          "CrmId": 3,
          "IsArchived": true
        },
        {
          "Orders": [
            {
              "LocationGuids": [
                "721a823b-ed69-4d10-8d1c-0395a0f792ca",
                "8a088257-3b4d-42be-8382-b8a41c7d54d4"
              ],
              "CreatedOn": "2017-12-15T21:29:17.2409651+00:00",
              "Status": 0,
              "TotalOrderAmount": 2.0,
              "OrderDate": "2017-12-15T21:29:17.2409651+00:00",
              "DeadlineDate": "2017-12-15T21:29:17.2409651+00:00",
              "OrderPosts": [
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                },
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                }
              ],
              "Id": "15f045ff-174c-4741-933c-36b81f838a65",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            },
            {
              "LocationGuids": [
                "721a823b-ed69-4d10-8d1c-0395a0f792ca",
                "8a088257-3b4d-42be-8382-b8a41c7d54d4"
              ],
              "CreatedOn": "2017-12-15T21:29:17.2409651+00:00",
              "Status": 0,
              "TotalOrderAmount": 2.0,
              "OrderDate": "2017-12-15T21:29:17.2409651+00:00",
              "DeadlineDate": "2017-12-15T21:29:17.2409651+00:00",
              "OrderPosts": [
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                },
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                }
              ],
              "Id": "15f045ff-174c-4741-933c-36b81f838a65",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            }
          ],
          "PartPosts": [
            {
              "AwQuantity": 1.0,
              "PostID": "401b3a4d-1db0-4cc2-a90f-26a1a8bba934",
              "Id": "e295feaa-5efc-4830-b475-faf80c0e1ea4",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            },
            {
              "AwQuantity": 1.0,
              "PostID": "401b3a4d-1db0-4cc2-a90f-26a1a8bba934",
              "Id": "e295feaa-5efc-4830-b475-faf80c0e1ea4",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            }
          ],
          "Id": "3f61e6a9-047a-41d1-bd86-c0938e7abf17",
          "Description": "sample string 2",
          "CrmId": 3,
          "IsArchived": true
        }
      ],
      "LocationGuids": [
        "ef11f6db-5a6d-485a-970e-5865abeea4b7",
        "30511ccd-b77f-4ee5-83b6-568bf2f05702"
      ],
      "AwardedOrgID": "eda186d1-ba12-471d-8f54-8b7e33c77333",
      "DateApprAward": "2017-12-15T21:29:17.2409651+00:00",
      "DateNotifAward": "2017-12-15T21:29:17.2409651+00:00",
      "Id": "39e07edf-ec8f-4d9a-9bac-acdb4b79fbca",
      "Description": "sample string 8",
      "CrmId": 9,
      "IsArchived": true
    },
    {
      "StartDate": "2017-12-15T21:29:17.2248629+00:00",
      "EndDate": "2017-12-15T21:29:17.2248629+00:00",
      "NotificationDate": "2017-12-15T21:29:17.2248629+00:00",
      "ExtraColsCandidates": "sample string 1",
      "ExtraColsContractingAuth": "sample string 2",
      "CanBeOrdered": true,
      "CallTermInWorkdays": true,
      "CallDeliveryTerm": 5.1,
      "MaxOrderAmount": 6.0,
      "Posts": [
        {
          "Reference": "sample string 1",
          "PostNr": 2,
          "PosNr": 3,
          "VATPercentage": 4.1,
          "UnitPrice": 5.0,
          "UOM": "sample string 6",
          "ExtraColsCandidates": "sample string 7",
          "ExtraColsContractingAuth": "sample string 8",
          "QuantityType": 1,
          "Id": "a468d058-b940-4c7c-8dc5-559975dabddf",
          "Description": "sample string 10",
          "CrmId": 11,
          "IsArchived": true
        },
        {
          "Reference": "sample string 1",
          "PostNr": 2,
          "PosNr": 3,
          "VATPercentage": 4.1,
          "UnitPrice": 5.0,
          "UOM": "sample string 6",
          "ExtraColsCandidates": "sample string 7",
          "ExtraColsContractingAuth": "sample string 8",
          "QuantityType": 1,
          "Id": "a468d058-b940-4c7c-8dc5-559975dabddf",
          "Description": "sample string 10",
          "CrmId": 11,
          "IsArchived": true
        }
      ],
      "Parts": [
        {
          "Orders": [
            {
              "LocationGuids": [
                "721a823b-ed69-4d10-8d1c-0395a0f792ca",
                "8a088257-3b4d-42be-8382-b8a41c7d54d4"
              ],
              "CreatedOn": "2017-12-15T21:29:17.2409651+00:00",
              "Status": 0,
              "TotalOrderAmount": 2.0,
              "OrderDate": "2017-12-15T21:29:17.2409651+00:00",
              "DeadlineDate": "2017-12-15T21:29:17.2409651+00:00",
              "OrderPosts": [
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                },
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                }
              ],
              "Id": "15f045ff-174c-4741-933c-36b81f838a65",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            },
            {
              "LocationGuids": [
                "721a823b-ed69-4d10-8d1c-0395a0f792ca",
                "8a088257-3b4d-42be-8382-b8a41c7d54d4"
              ],
              "CreatedOn": "2017-12-15T21:29:17.2409651+00:00",
              "Status": 0,
              "TotalOrderAmount": 2.0,
              "OrderDate": "2017-12-15T21:29:17.2409651+00:00",
              "DeadlineDate": "2017-12-15T21:29:17.2409651+00:00",
              "OrderPosts": [
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                },
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                }
              ],
              "Id": "15f045ff-174c-4741-933c-36b81f838a65",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            }
          ],
          "PartPosts": [
            {
              "AwQuantity": 1.0,
              "PostID": "401b3a4d-1db0-4cc2-a90f-26a1a8bba934",
              "Id": "e295feaa-5efc-4830-b475-faf80c0e1ea4",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            },
            {
              "AwQuantity": 1.0,
              "PostID": "401b3a4d-1db0-4cc2-a90f-26a1a8bba934",
              "Id": "e295feaa-5efc-4830-b475-faf80c0e1ea4",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            }
          ],
          "Id": "3f61e6a9-047a-41d1-bd86-c0938e7abf17",
          "Description": "sample string 2",
          "CrmId": 3,
          "IsArchived": true
        },
        {
          "Orders": [
            {
              "LocationGuids": [
                "721a823b-ed69-4d10-8d1c-0395a0f792ca",
                "8a088257-3b4d-42be-8382-b8a41c7d54d4"
              ],
              "CreatedOn": "2017-12-15T21:29:17.2409651+00:00",
              "Status": 0,
              "TotalOrderAmount": 2.0,
              "OrderDate": "2017-12-15T21:29:17.2409651+00:00",
              "DeadlineDate": "2017-12-15T21:29:17.2409651+00:00",
              "OrderPosts": [
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                },
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                }
              ],
              "Id": "15f045ff-174c-4741-933c-36b81f838a65",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            },
            {
              "LocationGuids": [
                "721a823b-ed69-4d10-8d1c-0395a0f792ca",
                "8a088257-3b4d-42be-8382-b8a41c7d54d4"
              ],
              "CreatedOn": "2017-12-15T21:29:17.2409651+00:00",
              "Status": 0,
              "TotalOrderAmount": 2.0,
              "OrderDate": "2017-12-15T21:29:17.2409651+00:00",
              "DeadlineDate": "2017-12-15T21:29:17.2409651+00:00",
              "OrderPosts": [
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                },
                {
                  "Quantity": 1.0,
                  "PostID": "cb8a0440-f5c5-4871-96e3-0fa342d96057",
                  "Id": "b7ebd234-a2b8-4bb4-ad8f-66c828999c75",
                  "Description": "sample string 4",
                  "CrmId": 5,
                  "IsArchived": true
                }
              ],
              "Id": "15f045ff-174c-4741-933c-36b81f838a65",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            }
          ],
          "PartPosts": [
            {
              "AwQuantity": 1.0,
              "PostID": "401b3a4d-1db0-4cc2-a90f-26a1a8bba934",
              "Id": "e295feaa-5efc-4830-b475-faf80c0e1ea4",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            },
            {
              "AwQuantity": 1.0,
              "PostID": "401b3a4d-1db0-4cc2-a90f-26a1a8bba934",
              "Id": "e295feaa-5efc-4830-b475-faf80c0e1ea4",
              "Description": "sample string 4",
              "CrmId": 5,
              "IsArchived": true
            }
          ],
          "Id": "3f61e6a9-047a-41d1-bd86-c0938e7abf17",
          "Description": "sample string 2",
          "CrmId": 3,
          "IsArchived": true
        }
      ],
      "LocationGuids": [
        "ef11f6db-5a6d-485a-970e-5865abeea4b7",
        "30511ccd-b77f-4ee5-83b6-568bf2f05702"
      ],
      "AwardedOrgID": "eda186d1-ba12-471d-8f54-8b7e33c77333",
      "DateApprAward": "2017-12-15T21:29:17.2409651+00:00",
      "DateNotifAward": "2017-12-15T21:29:17.2409651+00:00",
      "Id": "39e07edf-ec8f-4d9a-9bac-acdb4b79fbca",
      "Description": "sample string 8",
      "CrmId": 9,
      "IsArchived": true
    }
  ],
  "Id": "f4a14e99-1d75-45ba-afb1-ed98051ee830",
  "Description": "sample string 8",
  "CrmId": 9,
  "IsArchived": true
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.