Approve a pending proposal
POST /v1/threats/proposals/{id}/approve
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The ID of the proposal to approve
Example
123Responses
Section titled “ Responses ”Proposal approved
Contains detailed information about a proposal. This includes values of [Proposal] and a list of [FullProposalAction]s.
object
Contains values of threat_proposal_action::Model and a list of [InherentScore]s.
object
object
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
Contains information about the current scoring of a threat objective.
Inherent scores don’t exist without the context of an organization, and cannot exist without some relationship to a threat objective.
This struct should be refactored at some point to be more generic, because it doesn’t necessarily
have to relate to a proposal, nor does this struct need to include the threat_objective_name if not
requested alone.
object
The date the score was created.
An auto-incrementing PK value that uniquely identifies the score given the threat objective name
The y-axis
Determines whether this inherent score should be included in some return types of threat levels. TODO(dsgallups): bad design
The x-axis
The proposal action PK that this score is associated with
The proposal PK that this score is associated with
The threat objective PK
object
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
No proposal found