• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

PATCH Project/{id}

Some tooltip text!
• 9 minutes to read
 • 9 minutes to read
PATCH /api/v1/Project/{id}

Update a ProjectEntity with changes, as described in a JSON Patch or a JSON Merge Patch document.

See RFC6902 and RFC 7396. Update the Department field to "foo" can be done either as a JSON PATCH:


[ { "op": "replace", "path": "/Department", "value": "foo" } ]

or as a JSON MERGE PATCH, which describes the change directly:


{ "Department": "foo" }

JSON PATCH supports operations 'add', 'replace', 'remove' and 'test'. The path is case insensitive, and the leading slash is optional, so the paths "/department", "Department" and "department" are all equivalent.

Calls the {SuperOffice.CRM.Services.IProjectAgent} service SaveProjectEntity.

Path Part Type Description
id int32 The ProjectEntity id to update. Required

Query String Parameters

Parameter Name Type Description
$select string Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category" Default = show all fields.
PATCH /api/v1/Project/{id}?$select=name,department,category/id

Request Headers

Parameter Name Description
Authorization Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type.
X-XSRF-TOKEN If not using Authorization header, you must provide XSRF value from cookie or hidden input field
Content-Type Content-type of the request body:
Accept Content-type(s) you would like the response in: application/json, text/json, application/xml, text/xml, application/json-patch+json, application/merge-patch+json
Accept-Language Convert string references and multi-language values into a specified language (iso2) code.
SO-Language Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value.
SO-Culture Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set.
SO-TimeZone Specify the timezone code that you would like date/time responses converted to.
SO-AppToken The application token that identifies the partner app. Used when calling Online WebAPI from a server.

Request Body: changes

JSON-Patch array of operations+path+value, or a MERGE-PATCH object (which will be converted to a list of JSON-PATCH operations).

Property Name Type Description
op String "add", "replace", "remove", "test" "move" and "copy" not supported
path String The property names to modify. "/users/0/email", "/users/-",
value Object New/Replaced value - string or object.

Response:

ProjectEntity updated.

Response Description
200 ProjectEntity updated.
404 ProjectEntity with given id does not exist in the db.
409 Update blocked because a 'test' operation has detected a conflict with the entity value.
412 Update aborted because ProjectEntity has changed since the requested If-Unmodified-Since timestamp.

Response body: ProjectEntityWithLinks

Property Name Type Description
ProjectId int32 Primary key
Name string Project name
ProjectNumber string Automatically generated number
ProjectMembers array The persons which are members of the project
Urls array The project's internet adresses
CreatedDate date-time Registered date in UTC.
UpdatedDate date-time Last updated date in UTC.
Description string The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases
Postit string The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases
CreatedBy Associate The person that created the project
UpdatedBy Associate The person that last updated the project
Associate Associate The person that created the project Use MDO List name "associate" to get list items.
ProjectStatus ProjectStatus Project status is a list defined by the database administrator. Different statuses of a project may be: “In planning”, “Started”, “Finished” and so on Use MDO List name "projectstatus" to get list items.
ProjectType ProjectType Project type is a list defined by the database admin. for example: 'Large', 'Small', 'Party'... Use MDO List name "projecttype" to get list items.
HasImage bool True if the project has an image. (This is the image that is displayed in the CRM client)
ImageDescription string Description of the project image if it exists. (This is the image that is displayed in the CRM client)
ActiveStatusMonitorId int32 Active status monitor identity with the lowest rank for project
Links array List of all elements linked to the project
ActiveLinks int32 Number of active links to documents, other appointments, and such
Completed bool Done (0=false, 1=true). Status implies changes in which fields are shown in GUI, as well as which fields can be updated
NextMilestoneDate date-time Calculated date, reflects date of closest non-complete future milestone activity
NmdAppointmentId int32 ID of appointment that "caused" the nextMilestoneDate, can be 0
EndDate date-time Planned end date for project, inhertied from type and later editable
ActiveErpLinks int32 The number of active erp links
UserDefinedFields object Deprecated: Use {SuperOffice.CRM.Services.ProjectEntity.CustomFields} instead. Dictionary of user defined field data. The key string is the ProgId of the UdefField, or if the ProgId is empty it is a string of the format "SuperOffice:[UdefFieldIdentity]", e.g. "SuperOffice:1234"
ExtraFields object Deprecated: Use {SuperOffice.CRM.Services.ProjectEntity.CustomFields} instead. Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc.
CustomFields object Udef + Extra fields added to the carrier. Extra fields as defined by changes to database schema + user-defined fields as defined by admin. Custom fields combines user defined fields and extra fields into one bucket. The individual {SuperOffice.CRM.Services.ProjectEntity.ExtraFields} and UserDefinedFields properties are deprecated in favor of this combined collection.
PublishEventDate date-time Publish event date
PublishTo date-time Publication valid to (inclusive)
PublishFrom date-time Publication valid from (inclusive)
IsPublished bool Publication is published
TableRight TableRight The carrier's table right
FieldProperties object Field property dictionary mapping field names to field access rights.
_Links object

Sample request

PATCH /api/v1/Project/{id}
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: *
Content-Type: application/json; charset=utf-8

[
  {
    "op": "add",
    "path": "soluta",
    "value": {}
  },
  {
    "op": "add",
    "path": "soluta",
    "value": {}
  }
]

Sample response

HTTP/1.1 200 ProjectEntity  updated.
Content-Type: application/json; charset=utf-8

{
  "ProjectId": 200,
  "Name": "Raynor Group",
  "ProjectNumber": "1031860",
  "ProjectMembers": [
    {
      "ProjectmemberId": 841,
      "ContactId": 220,
      "ProjectId": 117,
      "ContactName": "Frami-Krajcik",
      "ContactDepartment": "streamline open-source networks",
      "ProjectName": "Lang Inc and Sons",
      "EmailId": 419,
      "EmailAddress": "toby_moen@grahamdibbert.us",
      "CountryId": 28,
      "Firstname": "Gisselle",
      "MiddleName": "Rau, Blanda and Kris",
      "Lastname": "Kerluke",
      "PersonId": 116,
      "Mrmrs": "eum",
      "ProjectMemberTypeName": "Zboncak LLC",
      "Phone": "(169)401-9970",
      "PhoneId": 419,
      "ProjectMemberTypeId": 807,
      "EmailAddressName": "reginald@kovacek.ca",
      "Comment": "non",
      "FullName": "Dr. Marisa George Botsford",
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.String",
          "FieldLength": 585
        }
      }
    }
  ],
  "Urls": [
    {
      "Value": "molestiae",
      "StrippedValue": "voluptas",
      "Description": "Virtual homogeneous migration",
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.Int32",
          "FieldLength": 239
        }
      }
    },
    {
      "Value": "molestiae",
      "StrippedValue": "voluptas",
      "Description": "Virtual homogeneous migration",
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.Int32",
          "FieldLength": 239
        }
      }
    }
  ],
  "CreatedDate": "2007-11-12T03:45:28.5140572+01:00",
  "UpdatedDate": "2006-01-01T03:45:28.5140572+01:00",
  "Description": "Polarised assymetric concept",
  "Postit": "quasi",
  "CreatedBy": null,
  "UpdatedBy": null,
  "Associate": null,
  "ProjectStatus": null,
  "ProjectType": null,
  "HasImage": true,
  "ImageDescription": "De-engineered next generation moderator",
  "ActiveStatusMonitorId": 535,
  "Links": [
    {
      "EntityName": "McCullough Inc and Sons",
      "Id": 717,
      "Description": "Extended value-added collaboration",
      "ExtraInfo": "aperiam",
      "LinkId": 723,
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.Int32",
          "FieldLength": 188
        }
      }
    }
  ],
  "ActiveLinks": 882,
  "Completed": false,
  "NextMilestoneDate": "2011-07-05T03:45:28.5140572+02:00",
  "NmdAppointmentId": 587,
  "EndDate": "2020-04-11T03:45:28.5140572+02:00",
  "ActiveErpLinks": 648,
  "UserDefinedFields": {
    "SuperOffice:1": "172702425",
    "SuperOffice:2": "Ronny Jewess"
  },
  "ExtraFields": {
    "ExtraFields1": "dolore",
    "ExtraFields2": "qui"
  },
  "CustomFields": {
    "CustomFields1": "vel",
    "CustomFields2": "qui"
  },
  "PublishEventDate": "2025-03-17T03:45:28.5140572+01:00",
  "PublishTo": "1999-11-29T03:45:28.5140572+01:00",
  "PublishFrom": "2016-08-10T03:45:28.5140572+02:00",
  "IsPublished": false,
  "TableRight": null,
  "FieldProperties": {
    "fieldName": {
      "FieldRight": null,
      "FieldType": "System.Int32",
      "FieldLength": 876
    }
  },
  "_Links": {
    "Self": "https://www.example.com/api/v1/project/321",
    "Archive": "https://www.example.com/api/v1/project"
  }
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top