{
  "arguments": {
    "argument": [
      {
        "_content": "Your API application key. <a href=\"/services/api/misc.api_keys.html\">See here</a> for more details.",
        "name": "api_key",
        "optional": 0
      },
      {
        "_content": "The id of the photo to set the adultness of.",
        "name": "photo_id",
        "optional": "0"
      },
      {
        "_content": "The safety level of the photo.  Must be one of:\n\n1 for Safe, 2 for Moderate, and 3 for Restricted.",
        "name": "safety_level",
        "optional": "1"
      },
      {
        "_content": "Whether or not to additionally hide the photo from public searches.  Must be either 1 for Yes or 0 for No.",
        "name": "hidden",
        "optional": "1"
      }
    ]
  },
  "errors": {
    "error": [
      {
        "_content": "The photo id passed was not a valid photo id of a photo belonging to the calling user.",
        "code": "1",
        "message": "Photo not found"
      },
      {
        "_content": "Neither a valid safety level nor a hidden value were passed.",
        "code": "2",
        "message": "Invalid or missing arguments"
      },
      {
        "_content": "Changing the safety level of this photo is not allowed.",
        "code": "3",
        "message": "Change not allowed"
      },
      {
        "_content": "SSL is required to access the Flickr API.",
        "code": 95,
        "message": "SSL is required"
      },
      {
        "_content": "The passed signature was invalid.",
        "code": 96,
        "message": "Invalid signature"
      },
      {
        "_content": "The call required signing but no signature was sent.",
        "code": 97,
        "message": "Missing signature"
      },
      {
        "_content": "The login details or auth token passed were invalid.",
        "code": 98,
        "message": "Login failed / Invalid auth token"
      },
      {
        "_content": "The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.",
        "code": 99,
        "message": "User not logged in / Insufficient permissions"
      },
      {
        "_content": "The API key passed was not valid or has expired.",
        "code": 100,
        "message": "Invalid API Key"
      },
      {
        "_content": "The requested service is temporarily unavailable.",
        "code": 105,
        "message": "Service currently unavailable"
      },
      {
        "_content": "The requested operation failed due to a temporary issue.",
        "code": 106,
        "message": "Write operation failed"
      },
      {
        "_content": "The requested response format was not found.",
        "code": 111,
        "message": "Format \"xxx\" not found"
      },
      {
        "_content": "The requested method was not found.",
        "code": 112,
        "message": "Method \"xxx\" not found"
      },
      {
        "_content": "The SOAP envelope send in the request could not be parsed.",
        "code": 114,
        "message": "Invalid SOAP envelope"
      },
      {
        "_content": "The XML-RPC request document could not be parsed.",
        "code": 115,
        "message": "Invalid XML-RPC Method Call"
      },
      {
        "_content": "One or more arguments contained a URL that has been used for abuse on Flickr.",
        "code": 116,
        "message": "Bad URL found"
      }
    ]
  },
  "method": {
    "description": {
      "_content": "Set the safety level of a photo."
    },
    "name": "flickr.photos.setSafetyLevel",
    "needslogin": 1,
    "needssigning": 1,
    "requiredperms": "2",
    "response": {
      "_content": "<rsp stat=\"ok\">\n<photo id=\"14814\" safety_level=\"2\" hidden=\"0\"/>\n</rsp>"
    }
  },
  "stat": "ok"
}