def METHOD_NAME(self, domain_id, data=None):
    """
    .. http:get:: /domains/1
       update one domain
       **Example request**:
       .. sourcecode:: http
          GET /domains HTTP/1.1
          Host: example.com
          Accept: application/json, text/javascript
          {
              "name": "www.example.com",
              "sensitive": false
          }
       **Example response**:
       .. sourcecode:: http
          HTTP/1.1 200 OK
          Vary: Accept
          Content-Type: text/javascript
          {
              "id": 1,
              "name": "www.example.com",
              "sensitive": false
          }
       :reqheader Authorization: OAuth token to authenticate
       :statuscode 200: no error
       :statuscode 403: unauthenticated
    """
    if not StrictRolePermission().can() or not SensitiveDomainPermission().can():
        return dict(message="You are not authorized to modify this domain."), 403
    return service.update(domain_id, data["name"], data["sensitive"])