UpdateProjectWorkspaceNote
This method can be used for the following: Update existing workspace note on a project that you have Edit access to.
The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.
PUT /api/ss/project/:id/workspace/note/:noteId HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: close
id (string)
Id of the project.
Example:
PUT /api/ss/project/5f63de24fa1c9208d3e140b0/workspace/note/:noteId HTTP/1.1
noteId (string)
Id of the note.
Example:
PUT /api/ss/project/:id/workspace/note/5fd2b313ee79ce0a79f213c1 HTTP/1.1
title (string) (optional)
Title of the note.
Example:
{
"title": "..."
}
details (string) (optional)
Details of the note.
Example:
{
"details": "..."
}
assets (array of strings) (optional)
Asset IDs for each asset on the project which is linked to the note.
Example:
{
"assets": ["5fd2aa6b82fba0091dee695b", "5f6ae8b97b1bc80867f90301"]
}
is_deleted (boolean) (optional)
Whether note is deleted or not.
Example:
{
"is_deleted": false
}
The following example is a cURL request to update an existing workspace note for a project.
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
curl -X PUT 'https://demo.attackforge.com/api/ss/project/5f63de24fa1c9208d3e140b0/workspace/note/5fd2b313ee79ce0a79f213c1' -H 'Host: localhost:3000' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
"title": "Updated Note",
"details": "Here are some updated note details",
"assets": ["5fd2aa6b82fba0091dee695b"],
"is_deleted": false
}'
Response contains a result.
{
"result": "Successfully Updated Project Workspace Note"
}
Last modified 2yr ago