Request

PUT https://api.digital-nautic.com/v3/users/{userId}/license

Path parameters

Parameter name Value Description Additional
userId integer

pass a user id to update the user license information.

Required

Request body

The request body takes a complete User License resource, containing the following writable properties:

{
    "country": {},
    "number": "string",
    "type": {
        "id": "integer",
        "name": "string"
    },
    "year": "integer"
}

Properties

Name Type Description Additional
country object

Country information.

number string

Number mentioned on the boat license document

type object

Boating licenses have multiple types / tiers. This represents the type of license used by a User.

type.id integer

Element ID

type.name string

Name of the boat license

year integer

Year of obtention mentioned on the boat license document

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

item updated

User License
400 Bad Request

bad input parameter

401 Unauthorized

authorization information is missing or invalid.

404 Not Found

a user with the specified ID was not found.


Explore this API

userId

pass a user id to update the user license information.

userLicenseItem

UserLicense item to update

Request Content-Type
Response Content-Type
Try it out!