PwsAddProjectNote
Overview
This web service adds a note to a specified project (PwsProjectRef).
Rate Limiting
In order to protect our servers from inadvertent service overuse or intentional attack, and to fairly distribute services to all our customers, we have implemented a rate limiting algorithm. When fully deployed, this new algorithm will cause services to either succeed with new warnings or fail with new errors when services are consumed at too high a rate. Programs that consume Projector services should be enhanced to handle rate limiting errors so that they can continue functioning properly. For more information please visit: Projector Rate Limiting Behavior.
Request Format
- PwsAddProjectNote
- serviceRequest: PwsAddProjectNoteRq
- RequestId: Int32
- SessionTicket: String
- Note: String (1024)
- ProjectIdentity: PwsProjectRef
- LocksToSteal: PwsEntityLockSummary[1..100]
- ProjectTimestamp: String
- ProjectorLockSetId: Int32
- serviceRequest: PwsAddProjectNoteRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
Int32 | No | Click here for more information | 1 | ||
String | Yes | Click here for more information | AWYoWMBC/cjl/RFPrykteA== | ||
Note | String (1024) | Yes | The note to be added to the project | To include additional or supporting information, you can add a note to a project. | |
ProjectIdentity | Yes | The identity of the project to which the note will be added to | |||
LocksToSteal | PwsEntityLockSummary[1..100] | No | The detailed information of the locks that are to be stolen. If not specified, the request will fail if any requested locks are already held. If specified, the information supplied must exactly match the current state of existing locks or the attempt to steal the existing locks will fail. Typically, this service is invoked with LocksToSteal empty or null. If there are existing locks, they will be returned in the LockHolders member of PwsFault. This data can then be sent, as is, back to the server in a second invocation of this service, as LocksToSteal, if the caller desires to steal the locks. | ||
ProjectTimestamp | String | No | This is an optimistic locking timestamp that, if provided on update request, will cause the request to fail when the timestamp stored in the database does not match the provided value. | ||
ProjectorLockSetId | Int32 | No | A projector lock set id is an identifier for a group of one or more locks held as a unit. If the session ticket owner for this request is also the holder of a lock in this set, the request can proceed and will not be blocked by the lock. |
Request Usage Example(s)
Response Format
- PwsAddProjectNoteResponse
- PwsAddProjectNoteResult: PwsAddProjectNoteRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- ProjectTimestamp: String
- StolenLocks: PwsEntityLockSummary
- PwsAddProjectNoteResult: PwsAddProjectNoteRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
ResponseId | Int32 | Click here for more information | 1 |
Status | Click here for more information | Ok | |
DateTime | Click here for more information | 2018-01-19T21:53:15.0569601Z | |
ProjectTimestamp | String | This is an optimistic locking timestamp that, if provided on update request, will cause the request to fail when the timestamp stored in the database does not match the provided value. | AAAAABFFCOw= |
StolenLocks | PwsEntityLockSummary | The locks that have been stolen during the project note creation or update. |
Response Usage Example(s)
PwsAddProjectNote - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
165 | ProjectNoteTruncated | The project note exceeded the maximum length of 1024 characters and was truncated. |
50220 | WebServicesPermissionDenied | The specified user does not have permission to execute web services, or web services is not enabled for this account. |
50472 | LockReleased | Lock xxxxx of type P has been released. |
50473 | InvalidLock | Invalid lock specified. |