Skip to main content

Catch Supervisor

The PostAddCatchSupervisor endpoint is responsible for registering a new Catch Supervisor in the MIMS system. This registration can be viewed on screen CAD398.


How to register a catch supervisor​

HTTP POST Request

Request TypeExample URL
POST{{url_base}}/PostAddCatchSupervisor
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddCatchSupervisor"

Input Parameters​

ParameterTypeRequiredDescription
CatchSupervisorNoString(25)YesExternal code of the catch supervisor
NameString(60)YesCatch supervisor name
EmailString(60)NoCatch supervisor email
ActiveBooleanYesFlag indicating that the Supervisor is active (true = active, false = inactive)
OverwriteIfExistsBooleanNoFlag indicating that data should be overwritten if the record already exists

Return​

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution
CatchSupervisorCodeIntegerYesInternal Catch Supervisor code generated in the MIMS system

Request Example​

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddCatchSupervisor"' \
--header 'Content-Type: application/json' \
--data-raw '{
"CatchSupervisorNo": "SUP001",
"Name": "João Silva",
"Email": "joao.silva@gmail.com",
"Active": true,
"OverwriteIfExists": true
}'

Response Example​

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"CatchSupervisorCode": 2
}

🐞 Possible Errors​

CodeMessage
ACP‑001The provided External Catch Supervisor Code parameter (CatchSupervisorNo) already exists!