POST Project/Validate
Some tooltip text!
• 7 minutes to read
• 7 minutes to read
POST /api/v1/Project/Validate
Check that entity is ready for saving, return error messages by field.
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: application/json , text/json , application/xml , text/xml , application/x-www-form-urlencoded , application/json-patch+json , application/merge-patch+json |
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: projectEntity
Entity to be checked for errors.
Property Name | Type | Description |
---|---|---|
ProjectId | Integer | 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 | String | Registered date in UTC. |
UpdatedDate | String | 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 |
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 |
ProjectType | ProjectType | Project type is a list defined by the database admin. for example: 'Large', 'Small', 'Party'... |
HasImage | Boolean | 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 | Integer | Active status monitor identity with the lowest rank for project |
Links | Array | List of all elements linked to the project |
ActiveLinks | Integer | Number of active links to documents, other appointments, and such |
Completed | Boolean | Done (0=false, 1=true). Status implies changes in which fields are shown in GUI, as well as which fields can be updated |
NextMilestoneDate | String | Calculated date, reflects date of closest non-complete future milestone activity |
NmdAppointmentId | Integer | ID of appointment that "caused" the nextMilestoneDate, can be 0 |
EndDate | String | Planned end date for project, inhertied from type and later editable |
ActiveErpLinks | Integer | 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 |
PublishEventDate | String | Publish event date |
PublishTo | String | Publication valid to (inclusive) |
PublishFrom | String | Publication valid from (inclusive) |
IsPublished | Boolean | Publication is published |
Response:object
OK
Response | Description |
---|---|
200 | OK |
Response body: object
Sample request
POST /api/v1/Project/Validate
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: fr,de,ru,zh
Content-Type: application/json; charset=utf-8
{
"ProjectId": 54,
"Name": "Hills-Pfeffer",
"ProjectNumber": "1651316",
"ProjectMembers": [
{
"ProjectmemberId": 236,
"ContactId": 261,
"ProjectId": 205,
"ContactName": "Fisher LLC",
"ContactDepartment": "",
"ProjectName": "Schmidt-Lind",
"EmailId": 739,
"EmailAddress": "marco.wolf@lefflerkoss.ca",
"CountryId": 575,
"Firstname": "Clemens",
"MiddleName": "Gerhold, Willms and Dicki",
"Lastname": "Mraz",
"PersonId": 383,
"Mrmrs": "laudantium",
"ProjectMemberTypeName": "Hoppe-Farrell",
"Phone": "(735)568-3958",
"PhoneId": 253,
"ProjectMemberTypeId": 911,
"EmailAddressName": "velda@reichertheaney.com",
"Comment": "vitae",
"FullName": "Antwan Titus O'Connell II"
}
],
"Urls": [
{
"Value": "dignissimos",
"StrippedValue": "dicta",
"Description": "Future-proofed systematic Graphic Interface"
},
{
"Value": "dignissimos",
"StrippedValue": "dicta",
"Description": "Future-proofed systematic Graphic Interface"
}
],
"CreatedDate": "2021-05-19T14:13:49.0712625+02:00",
"UpdatedDate": "2008-12-12T14:13:49.0712625+01:00",
"Description": "Persistent cohesive functionalities",
"Postit": "voluptates",
"CreatedBy": null,
"UpdatedBy": null,
"Associate": null,
"ProjectStatus": null,
"ProjectType": null,
"HasImage": true,
"ImageDescription": "Upgradable mobile product",
"ActiveStatusMonitorId": 379,
"Links": [
{
"EntityName": "Lang LLC",
"Id": 100,
"Description": "Seamless 3rd generation ability",
"ExtraInfo": "ad",
"LinkId": 908
},
{
"EntityName": "Lang LLC",
"Id": 100,
"Description": "Seamless 3rd generation ability",
"ExtraInfo": "ad",
"LinkId": 908
}
],
"ActiveLinks": 421,
"Completed": false,
"NextMilestoneDate": "2018-05-15T14:13:49.0712625+02:00",
"NmdAppointmentId": 550,
"EndDate": "2008-11-25T14:13:49.0712625+01:00",
"ActiveErpLinks": 333,
"UserDefinedFields": {
"SuperOffice:1": "Noemie Ritchie III",
"SuperOffice:2": "True"
},
"ExtraFields": {
"ExtraFields1": "ipsum",
"ExtraFields2": "qui"
},
"CustomFields": {
"CustomFields1": "aliquam",
"CustomFields2": "temporibus"
},
"PublishEventDate": "2023-11-28T14:13:49.0712625+01:00",
"PublishTo": "2017-04-26T14:13:49.0712625+02:00",
"PublishFrom": "2020-08-15T14:13:49.0712625+02:00",
"IsPublished": true
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"1": "eius",
"2": "blanditiis"
}