You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/tools_man/ngcp-api-put.1

43 lines
899 B

.TH NGCP-API 1
.SH NAME
sends a put request to NGCP REST API
.SH SYNOPSIS
.B ngcp-api-put
[\fB\-f\fR \fIFILEPATH\fR]
[\fB\-v\fR]
[\fB\-h\fR]
.IR URL
[content_type]
.SH DESCRIPTION
.B ngcp-api-put
sends a put request to NGCP REST API.
.SH OPTIONS
.TP
.BR \-f " " \fIFILEPATH\fR
use input file instead of stdin.
.TP
.BR \-v
verbose mode.
.TP
.BR \-h
print usage.
.TP
URL
Url for the request
.TP
content_type
The default is 'application/json'
.SH EXAMPLES
.TP
echo '{"body":"test","from_email":"test","name":"test","reseller_id":4,"subject":"test"}'\\
|ngcp-api-put 'https://example.org:1443/api/emailtemplates/2'
.TP
ngcp-api-put -f ../test_put.json https://127.0.0.1:1443/api/domains/ 'application/json'
.SH SEE ALSO
.TP
ngcp-api-get(1), ngcp-api-post(1), ngcp-api-patch(1), ngcp-api-delete(1)
.TP
https://ngcp-server.domain:1443/api
.SH COPYRIGHT
2014 Sipwise Development Team <support@sipwise.com>