Subtract max time
This Request will lower your maximum duration by [VALUE]
.
Request​
GET https://api.emlalock.com/submaximum?userid=[USERID]&apikey=[APIKEY]&holderapikey=[HOLDERAPIKEY]&value=[VALUE]
Request Parameter​
Field | Type | Description |
---|---|---|
[USERID] | String | Your UserID |
[APIKEY] | String | Your API-Key |
[HOLDERAPIKEY] | String | The holder API-Key |
[VALUE] | Integer|String | Time to subtract (see Short terms) |
Response​
Success (Status: 200)​
Response​
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"user": { ... },
"chastitysession": { ... }
}
Description​
Field | Type | Description |
---|---|---|
user | Object | The user object |
chastitysession | Object | The session object |
Error (Status: 4xx)​
Response​
HTTP/1.1 400 Bad Request
{
"error": "MissingRequiredData",
"values": [
"userid"
]
}
Description​
Error | Description |
---|---|
MissingRequiredData | Required parameters are not set. See response for missing values. |
UserNotFound | The user was not found. |
WrongAPIKey | The apikey was not correct. |
NoActiveSession | The user has no active session. |
SessionHasNoHolder | The session has no holder. |
HolderNotFound | The user data of the holder could not be found. |
HolderNotFound | The apikey of the holder was not correct. |
InvalidTimeValue | The value of [VALUE] is invalid. |
Short Terms​
The time value can be in seconds (like 604800
) or in short terms (like W5D4H7M34S12
)
The syntax for short terms is
Term | Meaning | Example |
---|---|---|
W | Weeks | W5 = 5 weeks |
D | Days | D4 = 4 days |
H | Hours | H7 = 7 hours |
M | Minutes | M34 = 34 minutes |
S | Seconds | S12 = 12 seconds |