easy
Single Answer
0

In a REST API, which HTTP action verb is used to insert or create a data item?

Answer Options

A

GET

B

UPDATE

C

POST

D

PUT

Correct Answer: C

Explanation

The Hypertext Transfer Protocol (HTTP) action verb POST will insert or create a data item when referencing an application programming interface (API). The HTTP action verb GET will read data from an API. The HTTP action verb UPDATE is not a valid verb; therefore, this is an invalid answer. The HTTP action verb PUT will only replace or update a data item; it will not insert a data item.

rest-api
http-verbs
crud
api