Version 2 Profile

Introduction

These API features allow you to control your own user profile in the Infinity portal.

See also the user profile notification routes in Config V2 Notifications.

Read Profile

Returns the profile for the authenticated user.

Request:

GET /config/v2/profile

Response:

Returns the authenticated user’s profile data.

{
    "userId":"5",
    "username":"someone@example.com",
    "userToken":"abcd1234",
    "firstName":"Someone",
    "lastName":"Somewhere",
    "primaryOrgId":"1234",
    "primaryOrgName":"Some Organisation",
    "updateDatetime":"2013-11-06 14:38:42",
    "perms":[
        {"domainCode":"somePermission","levelMask":"1"},
        {"domainCode":"someOtherPermission","levelMask":"7"}
    ],
    "branding":{
        "brandingId":"1",
        "brandingName":"Infinity Tracking",
        "logoFilename":"2f883544-d320-4418-bb6c-b8d93bc97854.png",
        "landingDomain":"infinity-tracking.com",
        "primaryColor":"#E52D87",
        "supportEmailAddress":"support@infinity.co",
        "businessName":"infinity.co"
    }
}

Set Password

Update your profile with a new password.

Request:

POST /config/v2/profile/password

POST Params

Response:

Returns the HTTP response code to reflect the request outcome.

HTTP 204 - No Content