Update Travel Document Scanner configurations in SPMS
put
/spms/v2/ships/{shipId}/configurations/travelDocumentScanner
This is to update the Travel Document Scanner configurations in SPMS
Request
Supported Media Types
- application/json
Path Parameters
-
shipId(required): number
Ship Id
Root Schema : Travel Document Scanner Configuration Request
Type:
object
Title:
Travel Document Scanner Configuration Request
Travel Document Scanner Configuration Request
Show Source
-
accessSecret:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Access SecretExample:ADCDEFGHIJKLMNOPQRSTUVWXYZ@#
-
accessSecretKeyStore:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Access Secret KeyStoreExample:ADCDEFGHIJKLMNOPQRSTUVWXYZ@#
-
accountId:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Account IDExample:Demo_cruise
-
apiKey:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
API KeyExample:ABCDEFGHIJKLMNOPQRSTUVWXYZ@#
-
hardwareId:
number
Hardware IDExample:
1
-
isEnabled:
boolean
This is to indicate whether the Travel Document Scanner Configuration is enabled or not enabledExample:
true
-
processImageApiUrl:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Process Image API URLExample:http://example.api/ImageProcessor
-
proxyHost:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Proxy HostExample:www.example.com
-
proxyPort:
number
Maximum Value:
65535
Proxy Port NumberExample:80
-
registerUrl:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Register URLExample:http://example.api/Register
Response
Supported Media Types
- application/json
200 Response
Updated
Root Schema : TravelDocumentScannerConfigurationItems
Type:
object
Travel Document Scanner Items
Show Source
-
accessSecret:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Access SecretExample:ADCDEFGHIJKLMNOPQRSTUVWXYZ@#
-
accessSecretKeyStore:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Access Secret KeyStoreExample:ADCDEFGHIJKLMNOPQRSTUVWXYZ@#
-
accountId:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Account IDExample:Demo_cruise
-
apiKey:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
API KeyExample:ABCDEFGHIJKLMNOPQRSTUVWXYZ@#
-
hardwareId:
number
Hardware IDExample:
1
-
isEnabled:
boolean
This is to indicate whether the Travel Document Scanner Configuration is enabled or not enabledExample:
true
-
processImageApiUrl:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Process Image API URLExample:http://example.api/ImageProcessor
-
proxyHost:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Proxy HostExample:www.example.com
-
proxyPort:
number
Maximum Value:
65535
Proxy Port NumberExample:80
-
registerUrl:
string
Maximum Length:
150
Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=<>|^'":;@`]*$
Register URLExample:http://example.api/Register
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Bad Request",
"detail":"The parameter shipId has incorrect format"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
401 Response
Unauthorized
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Unauthorized",
"detail":"Valid token is required to access this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
403 Response
Forbidden
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"Access to this resource is forbidden"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
404 Response
Not Found
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5",
"title":"Not Found",
"detail":"Ship Id could not be found"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
405 Response
Method Not Allowed
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6",
"title":"Method Not Supported",
"detail":"HTTP method not supported for this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
406 Response
Not Acceptable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7",
"title":"Not Acceptable",
"detail":"Request a Mime type that is supported for this Resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
415 Response
Unsupported Media Type
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16",
"title":"Invalid content",
"detail":"Content type Not supported"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
"title":"Internal Server Error",
"detail":"Issue fulfilling request. Please retry or contact support"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
503 Response
Service Unavailable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4",
"title":"Service Unavailable",
"detail":"Service Unavailable. Try again later"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source