Parental-control API documentation version v1
https://client-api.magine.com/api/parental-control/{version}
- version: required(v1)
/asset
Current youth-protection state for asset
post /asset
Current youth-protection state for asset
Headers
- Magine-AccessToken: required(string)
A token that identifies a specific partner
Example:
25b70ae1-d2bd-4ae7-85f4-62026580c866
- Authorization: required(string)
Bearer {login token}
Example:
Bearer 4b6fbf80..
Body
Media type: application/json
Type: object
Properties- userId: required(string)
- assetId: required(string)
- iso8601Time: (string)
Example:
2017-06-12T09:37:45+01:00
/parental-control/{userId}
Returns current parental-control
Modify parental-control
get /parental-control/{userId}
Returns current parental-control
URI Parameters
- userId: required(string)
Headers
- Magine-AccessToken: required(string)
A token that identifies a specific partner
Example:
25b70ae1-d2bd-4ae7-85f4-62026580c866
- Authorization: required(string)
Bearer {login token}
Example:
Bearer 4b6fbf80..
patch /parental-control/{userId}
Modify parental-control
URI Parameters
- userId: required(string)
Headers
- Magine-AccessToken: required(string)
A token that identifies a specific partner
Example:
25b70ae1-d2bd-4ae7-85f4-62026580c866
- Authorization: required(string)
Bearer {login token}
Example:
Bearer 4b6fbf80..
Body
Media type: application/json
Type: object
Properties- newCode: (string)
Desired new code, if any
- active: (boolean - default: true)
Desired state for parental control (true for active, false for inactive)
- oldCode: (string)
The current parental-control code if the user has one.
Verify parental-control code
Verify parental-control code
head /parental-control/{userId}/code/{code}
Verify parental-control code
URI Parameters
- userId: required(string)
- code: required(string)
The code to verify
Headers
- Magine-AccessToken: required(string)
A token that identifies a specific partner
Example:
25b70ae1-d2bd-4ae7-85f4-62026580c866
- Authorization: required(string)
Bearer {login token}
Example:
Bearer 4b6fbf80..
get /parental-control/{userId}/code/{code}
Verify parental-control code
URI Parameters
- userId: required(string)
- code: required(string)
The code to verify
Headers
- Magine-AccessToken: required(string)
A token that identifies a specific partner
Example:
25b70ae1-d2bd-4ae7-85f4-62026580c866
- Authorization: required(string)
Bearer {login token}
Example:
Bearer 4b6fbf80..
Reset parental control