Services/KeyExchange: Difference between revisions

Jump to navigation Jump to search
Line 163: Line 163:
     - 400: Bad or no client ID. The channel is deleted.
     - 400: Bad or no client ID. The channel is deleted.
     - 403: the IP is blacklisted.  
     - 403: the IP is blacklisted.  
'''DELETE''' '''https://''server''/''channel_id'' '''
  Delete the channel of id ''channel_id''. If the response contains a ''X-KeyEchange-Log'', its value will be pushed as log on the server.
   
  Return codes:
    - 200: channel deleted successfully 
    - 503: the server was unable to delete the channel
    - 404: the channel does not exists. It was not created by a call
            to ''new_channel'' or timed out or already deleted.
    - 400: Bad or no client ID. The channel is deleted.
    - 403: the IP is blacklisted.




Line 181: Line 168:


   Reports a log to the server, and ask for a channel deletion.  
   Reports a log to the server, and ask for a channel deletion.  
 
 
   The log is the body of the request. If the  
   The log is the body of the request. If the  
   request contains a ''X-KeyEchange-Log'' header, its value is prepended
   request contains a ''X-KeyEchange-Log'' header, its value is prepended
Line 191: Line 178:
   ''X-KeyEchange-Cid'' header containing the channel id, the channel will
   ''X-KeyEchange-Cid'' header containing the channel id, the channel will
   be deleted by the server.
   be deleted by the server.
 
 
   Return codes:
   Return codes:
     - 200: logged successfully   
     - 200: logged successfully   
Confirmed users
927

edits

Navigation menu