Image diff reject

Warning: The API documentation here is for Managed Game Server Hosting (Clanforge). If you’re using Game Server Hosting (Multiplay), refer to the Game Server API documentation.

Reject a difference analysis identified by <diffid>. The specified difference analysis must be in a complete or failed state.

Note that you must reject or accept a difference analysis before generating a new one.

https://api.multiplay.co.uk/cfp/v1/imagediff/<diffid>/reject

METHOD

GET

Request parameters

VARIABLEDESCRIPTIONOPTIONAL
accountserviceidThe <accountserviceid> parameter accepts an account service ID (ASID) associated with the specified resource. The credentials in the request header must have access to the ASID to perform the request.No
diffidThe <diffid> parameter accepts a difference analysis ID that identifies a difference analysis in a completed or failed state. The specified <diffid> will be rejected.No
reinstallThe <reinstall> parameter accepts a boolean value.

If set to 1, the machine associated with the diff will have the image reinstalled to the last known good state.

If set to 0, the image won't be reinstalled.

No

Response fields

With install (reinstall !=1)

FieldTypeDescriptionOptional
uninstalljobidintegerID of the uninstall job that was triggeredNo
jobcreatedintegerUnix timestamp of when the job was createdNo
joberrorstringMessage indicating the job errorYes
jobetaintegerUnix timestamp representing the time at which the job is expected to completeYes
jobfailedintegerNumeric flag indicating whether the job has failedNo
jobprogressintegerPercentage between 0 and 100 indicating job progressNo
jobstartstringUnix timestamp of when the job was startedYes
jobstateidintegerJob state ID indicating the state of the jobYes
jobstatenamestringName of the job stateNo
jobupdatedintegerUnix timestamp of when the job was last updatedNo

Without install (reinstall = 1)

FieldTypeDescriptionOptional
diffidintegerID of the diff being usedNo

Example request

curl --location -g --request GET 'https://api.multiplay.co.uk/cfp/v1/imagediff/<diffid>/reject?accountserviceid=<accountserviceid>&reinstall=<reinstall>' \
--header 'Authorization: Basic YOUR_AUTH_CREDENTIALS'

Example response

Without reinstall (reinstall !=1)

{
    "diffid" : <diffid>
}

With reinstall (reinstall = 1)

{
    "uninstalljobid" : <uninstalljobid>,
    "jobcreated" : <jobcreated>,
    "joberror" : <joberror>,
    "jobeta" : <jobeta>,
    "jobfailed" : <jobfailed>,
    "jobprogress" : <jobprogress>,
    "jobstart" : <jobstart>,
    "jobstateid" : <jobstateid>,
    "jobstatename" : <jobstatename>,
    "jobupdated" : <jobupdated>
}

Failed difference analysis

If the difference analysis fails, the Image Diff Status endpoint returns a response body that includes "jobfailed": 1 and more information about why the creation failed in the "error" field. The failed difference analysis must be rejected by calling the Image Diff Status endpoint with the diffid before a new difference analysis based on the same game image can be run.